🌎 Login Translations done
This commit is contained in:
parent
0aea3c1e7c
commit
e087a8dc30
16
app/order.js
Normal file
16
app/order.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
// get all language files
|
||||||
|
const files = fs.readdirSync('./src/locales/');
|
||||||
|
files.forEach((f) => {
|
||||||
|
// read file as object
|
||||||
|
const unordered = JSON.parse(fs.readFileSync(`src/locales/${f}`));
|
||||||
|
// order object by keys alpabetically A-Z
|
||||||
|
const ordered = Object.keys(unordered).sort().reduce((obj, key) => {
|
||||||
|
obj[key] = unordered[key];
|
||||||
|
return obj;
|
||||||
|
}, {});
|
||||||
|
// format output as json for commit diff compatibility
|
||||||
|
const out = JSON.stringify(ordered, 0, 4);
|
||||||
|
// write output file
|
||||||
|
fs.writeFileSync(`src/locales/${f}`, out);
|
||||||
|
});
|
@ -96,7 +96,7 @@ return $locale == l;
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="token"
|
id="token"
|
||||||
:placeholder={$_('client_token')}
|
placeholder={$_('client_token')}
|
||||||
bind:value={token}
|
bind:value={token}
|
||||||
class:border-red-500={!isTokenValid}
|
class:border-red-500={!isTokenValid}
|
||||||
class:border-solid={!isTokenValid}
|
class:border-solid={!isTokenValid}
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
"english": "Englisch",
|
"client_token": "Client Token",
|
||||||
"the_provided_scan_station_token_is_invalid": "",
|
"configuration": "Konfiguration",
|
||||||
"configuration": "Konfiguration",
|
"configure": "Konfigurieren",
|
||||||
"please_provide_the_scan_client_token": "Bitte gebe den Scan-Client-Token an.",
|
"error": "Error!",
|
||||||
"the_provided_scan_station_is_disabled": "Die angegebene Scanstation ist deaktiviert.",
|
"please_check_your_token_and_try_again": "Bitte überprüfe den Token und versuche es erneut...",
|
||||||
"see_our_configuration_guide": "Siehe dir unsere Konfigurationsanleitung an.",
|
"please_provide_a_valid_client_token": "Bitte gebe einen gültigen Client-Token an ...",
|
||||||
"please_provide_a_valid_client_token": "Bitte gebe einen gültigen Client-Token an ..."
|
"please_provide_the_scan_client_token": "Bitte gebe den Scan-Client-Token an.",
|
||||||
}
|
"see_our_configuration_guide": "Siehe dir unsere Konfigurationsanleitung an.",
|
||||||
|
"the_provided_scan_station_is_disabled": "Die angegebene Scanstation ist deaktiviert.",
|
||||||
|
"the_provided_scan_station_token_is_invalid": "Der angegebene Scanstation-Token ist ungültig."
|
||||||
|
}
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"please_provide_the_scan_client_token": "Please provide the scan client token.",
|
"client_token": "Client Token",
|
||||||
"configuration": "Configuration",
|
"configuration": "Configuration",
|
||||||
"see_our_configuration_guide": "See our configuration guide.",
|
"configure": "Configure",
|
||||||
"error": "Error!",
|
"error": "Error!",
|
||||||
"the_provided_scan_station_token_is_invalid": "The provided scan station token is invalid.",
|
"please_check_your_token_and_try_again": "Please check your token and try again...",
|
||||||
"please_check_your_token_and_try_again": "Please check your token and try again...",
|
"please_provide_a_valid_client_token": "Please provide a valid client token...",
|
||||||
"the_provided_scan_station_is_disabled": "The provided scan station is disabled.",
|
"please_provide_the_scan_client_token": "Please provide the scan client token.",
|
||||||
"client_token": "Client Token",
|
"see_our_configuration_guide": "See our configuration guide.",
|
||||||
"please_provide_a_valid_client_token": "Please provide a valid client token...",
|
"the_provided_scan_station_is_disabled": "The provided scan station is disabled.",
|
||||||
"configure": "Configure",
|
"the_provided_scan_station_token_is_invalid": "The provided scan station token is invalid."
|
||||||
"german": "Deutsch",
|
}
|
||||||
"english": "English"
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user