We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d226f7 + 8ddc7bb commit 8f82aa9Copy full SHA for 8f82aa9
1 file changed
frontend/i18n/translations.js
@@ -0,0 +1,14 @@
1
+translations = {
2
+ 'en': {
3
+ 'welcome': 'Welcome to AgriTech',
4
+ 'dashboard': 'Dashboard',
5
+ },
6
+ 'hi': {
7
+ 'welcome': 'AgriTech me svagat hai',
8
9
+ }
10
+}
11
+
12
+def get_translation(lang, key):
13
+ return translations.get(lang, {}).get(key, translations['en'].get(key, key))
14
0 commit comments