feat(localization): add German localization

This commit is contained in:
Markus Koehne
2022-05-04 02:01:45 +02:00
parent 9204a6213a
commit 2a61dd0515
2 changed files with 376 additions and 0 deletions
@@ -19,6 +19,8 @@ part 'stream_chat_localizations_hi.dart';
part 'stream_chat_localizations_pt.dart';
part 'stream_chat_localizations_de.dart';
/// The set of supported languages, as language code strings.
///
/// The [GlobalStreamChatLocalizations.delegate] can generate localizations for
@@ -36,6 +38,7 @@ const kStreamChatSupportedLanguages = {
'ja',
'ko',
'pt',
'de',
};
/// Creates a [GlobalStreamChatLocalizations] instance for the given `locale`.
@@ -74,6 +77,8 @@ GlobalStreamChatLocalizations? getStreamChatTranslation(Locale locale) {
return const StreamChatLocalizationsKo();
case 'pt':
return const StreamChatLocalizationsPt();
case 'de':
return const StreamChatLocalizationsDe();
default:
return null;
}