feat(localization): Create stream_chat_localizations_no.dart (#1218)

* Create stream_chat_localizations_no.dart

Added the Norwegian translation for the Stream Chat

* Apply suggestions from code review

* Two spelling errors sneaked in

* fix(localization): cleanup pr

* chore(localization): update readme

* chore(localization): update changelog

Co-authored-by: Sahil Kumar <[email protected]>
Co-authored-by: Salvatore Giordano <[email protected]>
This commit is contained in:
monhelle
2022-07-07 10:07:18 +02:00
committed by GitHub
co-authored by Sahil Kumar Salvatore Giordano
parent dd47db04dd
commit f682e0d310
4 changed files with 406 additions and 0 deletions
@@ -21,6 +21,8 @@ part 'stream_chat_localizations_pt.dart';
part 'stream_chat_localizations_de.dart';
part 'stream_chat_localizations_no.dart';
/// The set of supported languages, as language code strings.
///
/// The [GlobalStreamChatLocalizations.delegate] can generate localizations for
@@ -39,6 +41,7 @@ const kStreamChatSupportedLanguages = {
'ko',
'pt',
'de',
'no',
};
/// Creates a [GlobalStreamChatLocalizations] instance for the given `locale`.
@@ -79,6 +82,8 @@ GlobalStreamChatLocalizations? getStreamChatTranslation(Locale locale) {
return const StreamChatLocalizationsPt();
case 'de':
return const StreamChatLocalizationsDe();
case 'no':
return const StreamChatLocalizationsNo();
default:
return null;
}