From 830321c9b918549c212596ffa5de228295ca555f Mon Sep 17 00:00:00 2001 From: prashantSj789 Date: Sun, 1 Oct 2023 12:50:13 +0530 Subject: [PATCH 1/3] marathi translation aded --- lib/configs/config.dart | 3 ++- lib/utils/app_translations.dart | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/configs/config.dart b/lib/configs/config.dart index d468cc4..fc55e7c 100644 --- a/lib/configs/config.dart +++ b/lib/configs/config.dart @@ -136,6 +136,7 @@ class Config { static List languageList = [ Language("English", "US", "en"), Language("বাংলা", "IN", "bn"), - Language("हिंदी", "IN", "hn") + Language("हिंदी", "IN", "hn"), + Language("मराठी","IN","mt") ]; } diff --git a/lib/utils/app_translations.dart b/lib/utils/app_translations.dart index fb7bb74..24121e1 100644 --- a/lib/utils/app_translations.dart +++ b/lib/utils/app_translations.dart @@ -18,5 +18,10 @@ class AppTranslations extends Translations { "about_us": "हमारे बारे में", "teams": "दल", }, + 'mt_IN':{ + "home":"मुख्यपृष्ठ", + "about_us":"आमच्या_बद्दल", + "teams":"संघ" + } }; } From e33005e173fb0b46c1dc94ec9048292889b507c3 Mon Sep 17 00:00:00 2001 From: prashantSj789 Date: Sun, 1 Oct 2023 13:20:58 +0530 Subject: [PATCH 2/3] there was _ instead of space --- lib/utils/app_translations.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/app_translations.dart b/lib/utils/app_translations.dart index 24121e1..3799c87 100644 --- a/lib/utils/app_translations.dart +++ b/lib/utils/app_translations.dart @@ -20,7 +20,7 @@ class AppTranslations extends Translations { }, 'mt_IN':{ "home":"मुख्यपृष्ठ", - "about_us":"आमच्या_बद्दल", + "about_us":"आमच्या बद्दल", "teams":"संघ" } }; From 4c037e6383f93a925cc9b6e4a76c448a5d2e990a Mon Sep 17 00:00:00 2001 From: prashantSj789 Date: Sun, 1 Oct 2023 18:23:18 +0530 Subject: [PATCH 3/3] marathi added --- lib/blocs/locale_bloc.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/blocs/locale_bloc.dart b/lib/blocs/locale_bloc.dart index 55aa71d..3ed8387 100644 --- a/lib/blocs/locale_bloc.dart +++ b/lib/blocs/locale_bloc.dart @@ -8,7 +8,7 @@ class LocaleBLoc extends ChangeNotifier { static const String english = "en"; static const String bengali = "bn"; static const String hindi = "hn"; - + static const String marathi ="mt" Locale _currentLocale = const Locale(english, "US"); Locale get currentLocale => _currentLocale; @@ -31,6 +31,9 @@ class LocaleBLoc extends ChangeNotifier { case hindi: locale = Locale(language.languageCode, "IN"); break; + case marathi: + locale = Locale(language.languageCode,"IN"); + break; default: locale = Locale(language.languageCode, 'US'); }