add french translations

This commit is contained in:
Sacha Arbonel
2021-07-21 09:51:39 -04:00
parent 42ed729a87
commit b59b8a0050
2 changed files with 364 additions and 2 deletions
@@ -6,7 +6,7 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart'
show StreamChatLocalizations, User;
part 'stream_chat_localizations_en.dart';
part 'stream_chat_localizations_fr.dart';
part 'stream_chat_localizations_hi.dart';
/// The set of supported languages, as language code strings.
@@ -17,7 +17,7 @@ part 'stream_chat_localizations_hi.dart';
/// See also:
///
/// * [getStreamChatTranslation], whose documentation describes these values.
const kStreamChatSupportedLanguages = {'en', 'hi'};
const kStreamChatSupportedLanguages = {'en', 'hi', 'fr'};
/// Creates a [GlobalStreamChatLocalizations] instance for the given `locale`.
///
@@ -43,6 +43,8 @@ GlobalStreamChatLocalizations? getStreamChatTranslation(Locale locale) {
return const StreamChatLocalizationsEn();
case 'hi':
return const StreamChatLocalizationsHi();
case 'fr':
return const StreamChatLocalizationsFr();
}
}