feat(localization): add German localization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user