added support for Portuguese

This commit is contained in:
Santiago Garcia
2022-01-12 11:46:51 -03:00
parent 512d68af63
commit 270378a7c0
8 changed files with 404 additions and 10 deletions
@@ -17,6 +17,8 @@ part 'stream_chat_localizations_ko.dart';
part 'stream_chat_localizations_hi.dart';
part 'stream_chat_localizations_pt.dart';
/// The set of supported languages, as language code strings.
///
/// The [GlobalStreamChatLocalizations.delegate] can generate localizations for
@@ -33,6 +35,7 @@ const kStreamChatSupportedLanguages = {
'es',
'ja',
'ko',
'pt',
};
/// Creates a [GlobalStreamChatLocalizations] instance for the given `locale`.
@@ -69,6 +72,8 @@ GlobalStreamChatLocalizations? getStreamChatTranslation(Locale locale) {
return const StreamChatLocalizationsJa();
case 'ko':
return const StreamChatLocalizationsKo();
case 'pt':
return const StreamChatLocalizationsPt();
}
}