🌎 Login Translations done
This commit is contained in:
		
							
								
								
									
										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 | ||||
|             type="text" | ||||
|             id="token" | ||||
|             :placeholder={$_('client_token')} | ||||
|             placeholder={$_('client_token')} | ||||
|             bind:value={token} | ||||
|             class:border-red-500={!isTokenValid} | ||||
|             class:border-solid={!isTokenValid} | ||||
|   | ||||
| @@ -1,9 +1,12 @@ | ||||
| { | ||||
|   "english": "Englisch", | ||||
|   "the_provided_scan_station_token_is_invalid": "", | ||||
|   "configuration": "Konfiguration", | ||||
|   "please_provide_the_scan_client_token": "Bitte gebe den Scan-Client-Token an.", | ||||
|   "the_provided_scan_station_is_disabled": "Die angegebene Scanstation ist deaktiviert.", | ||||
|   "see_our_configuration_guide": "Siehe dir unsere Konfigurationsanleitung an.", | ||||
|   "please_provide_a_valid_client_token": "Bitte gebe einen gültigen Client-Token an ..." | ||||
| } | ||||
|     "client_token": "Client Token", | ||||
|     "configuration": "Konfiguration", | ||||
|     "configure": "Konfigurieren", | ||||
|     "error": "Error!", | ||||
|     "please_check_your_token_and_try_again": "Bitte überprüfe den Token und versuche es erneut...", | ||||
|     "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.", | ||||
|   "configuration": "Configuration", | ||||
|   "see_our_configuration_guide": "See our configuration guide.", | ||||
|   "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...", | ||||
|   "the_provided_scan_station_is_disabled": "The provided scan station is disabled.", | ||||
|   "client_token": "Client Token", | ||||
|   "please_provide_a_valid_client_token": "Please provide a valid client token...", | ||||
|   "configure": "Configure", | ||||
|   "german": "Deutsch", | ||||
|   "english": "English" | ||||
| } | ||||
|     "client_token": "Client Token", | ||||
|     "configuration": "Configuration", | ||||
|     "configure": "Configure", | ||||
|     "error": "Error!", | ||||
|     "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...", | ||||
|     "please_provide_the_scan_client_token": "Please provide the scan client token.", | ||||
|     "see_our_configuration_guide": "See our configuration guide.", | ||||
|     "the_provided_scan_station_is_disabled": "The provided scan station is disabled.", | ||||
|     "the_provided_scan_station_token_is_invalid": "The provided scan station token is invalid." | ||||
| } | ||||
		Reference in New Issue
	
	Block a user