feat: support for japanese

This commit is contained in:
Sacha Arbonel
2021-08-02 15:19:12 -04:00
parent ab1b65846d
commit e14258c390
2 changed files with 365 additions and 0 deletions
@@ -11,6 +11,8 @@ part 'stream_chat_localizations_fr.dart';
part 'stream_chat_localizations_it.dart';
part 'stream_chat_localizations_ja.dart';
part 'stream_chat_localizations_hi.dart';
/// The set of supported languages, as language code strings.
@@ -27,6 +29,7 @@ const kStreamChatSupportedLanguages = {
'fr',
'it',
'es',
'ja',
};
/// Creates a [GlobalStreamChatLocalizations] instance for the given `locale`.
@@ -59,6 +62,8 @@ GlobalStreamChatLocalizations? getStreamChatTranslation(Locale locale) {
return const StreamChatLocalizationsIt();
case 'es':
return const StreamChatLocalizationsEs();
case 'ja':
return const StreamChatLocalizationsJa();
}
}