changes the locales structure making english strings as keys

Previously they were stored according to the format
'src/locales/{{lng}}/translation.json'
and after review, they are stored according to the following:
'src/locales/{{lng}}.json'
Also, the english strings are used as the keys/identifier in
translation files to make it easy to understand and implement.

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
This commit is contained in:
Sudhanshu Gautam 2019-07-04 16:05:25 +05:30
parent 66b4d9a86f
commit 6713303247
7 changed files with 41 additions and 61 deletions

14
src/locales/de.json Normal file
View file

@ -0,0 +1,14 @@
{
"English": "Englisch",
"German": "Deutsche",
"Submit": "Einreichen",
"Change Language": "Sprache ändern",
"Search your device": "Suchen Sie Ihr Gerät",
"No results": "Keine Ergebnisse",
"Model": "Modell",
"Vendor": "Verkäufer",
"Variant": "Variante",
"OpenWrt Firmware Selector Wizard": "OpenWrt Firmware Selector Wizard",
"Download OpenWrt firmware for your device!": "Laden Sie die OpenWrt-Firmware für Ihr Gerät herunter!",
"Please use the input below to download firmware for your device!": "Bitte benutzen Sie den unten stehenden Eingang, um die Firmware für Ihr Gerät herunterzuladen!"
}

View file

@ -1,24 +0,0 @@
{
"title": "OpenWrt Firmware Selector Wizard",
"appIntro": {
"head": "Laden Sie die OpenWrt-Firmware für Ihr Gerät herunter!",
"para": "Bitte benutzen Sie den unten stehenden Eingang, um die Firmware für Ihr Gerät herunterzuladen!"
},
"components": {
"submit": "einreichen",
"changeLanguage": "Sprache ändern",
"select": {
"placeholder": "Wählen...",
"noOptions": "Keine Optionen"
},
"search": {
"label": "Suchen Sie Ihr Gerät",
"noResults": "Keine Ergebnisse"
}
},
"table": {
"model": "Modell",
"vendor": "Verkäufer",
"variant": "Variante"
}
}

14
src/locales/en.json Normal file
View file

@ -0,0 +1,14 @@
{
"English": "English",
"German": "German",
"Submit": "Submit",
"Change Language": "Change Language",
"Search your device": "Search your device",
"No results": "No results",
"Model": "Model",
"Vendor": "Vendor",
"Variant": "Variant",
"OpenWrt Firmware Selector Wizard": "OpenWrt Firmware Selector Wizard",
"Download OpenWrt firmware for your device!": "Download OpenWrt firmware for your device!",
"Please use the input below to download firmware for your device!": "Please use the input below to download firmware for your device!"
}

View file

@ -1,24 +0,0 @@
{
"title": "OpenWrt Firmware Selector Wizard",
"appIntro": {
"head": "Download OpenWrt firmware for your device!",
"para": "Please use the input below to download firmware for your device!"
},
"components": {
"submit": "Submit",
"changeLanguage": "Change Language",
"select": {
"placeholder": "Select...",
"noOptions": "No options"
},
"search": {
"label": "Search your device",
"noResults": "No results"
}
},
"table": {
"model": "Model",
"vendor": "Vendor",
"variant": "Variant"
}
}