diff options
| author | Ben Woodward <ben@bdw.to> | 2021-08-05 12:12:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 12:12:17 -0700 |
| commit | 093f025de3e97339750dc3df5be626a0315507dc (patch) | |
| tree | 9b740790ae1f4fb6f5ad2b675c01f37acd2f0914 /src/i18n.js | |
| parent | 5a03a61de7ac4e8f58060ae19a309dd40eea13bc (diff) | |
Style and code refactor (#166)
* Move all settings below card
* refactor components; lifting state up
* background color
* Evergreen components for everything
* password error
* Tighten card size
* Simply hide password to basic toggle, never disable
* Hide password label, too
* Maximize mobile portrait width
* Make wifi tip smaller
* Small style tweaks
* Copy: update password length error text to include helpful instructions
This will need a backfill for other translations
* Remove unused css
* Use empty string for EncryptionMode=None value
* Remove light.min.css
* Include logo on wificard
* Cleanup after rebase
* Clean-up comments on state
* Padding for mobile
Diffstat (limited to 'src/i18n.js')
| -rw-r--r-- | src/i18n.js | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/src/i18n.js b/src/i18n.js index 452bf23..891e291 100644 --- a/src/i18n.js +++ b/src/i18n.js | |||
| @@ -16,16 +16,19 @@ const resources = { | |||
| 16 | 'wifi.name.placeholder': 'WiFi Network name', | 16 | 'wifi.name.placeholder': 'WiFi Network name', |
| 17 | 'wifi.password': 'Password', | 17 | 'wifi.password': 'Password', |
| 18 | 'wifi.password.placeholder': 'Password', | 18 | 'wifi.password.placeholder': 'Password', |
| 19 | 'wifi.password.hide': 'Hide password field before printing', | 19 | 'wifi.password.hide': 'Hide password', |
| 20 | 'wifi.password.encryption': 'Encryption', | 20 | 'wifi.password.encryption': 'Encryption', |
| 21 | 'wifi.password.encryption.none': 'None', | 21 | 'wifi.password.encryption.none': 'None', |
| 22 | 'wifi.tip': | 22 | 'wifi.tip': |
| 23 | "Point your phone's camera at the QR Code to connect automatically", | 23 | "Point your phone's camera at the QR Code to connect automatically", |
| 24 | 'wifi.alert.name': 'Network name cannot be empty', | 24 | 'wifi.alert.name': 'Network name cannot be empty', |
| 25 | 'wifi.alert.password.length.5': 'Password must be at least 5 characters', | 25 | 'wifi.alert.password.length.5': |
| 26 | 'wifi.alert.password.length.8': 'Password must be at least 8 characters', | 26 | 'Password must be at least 5 characters, or change the encryption to "None"', |
| 27 | 'wifi.alert.password.length.8': | ||
| 28 | 'Password must be at least 8 characters, or change the encryption to "None"', | ||
| 27 | 'button.rotate': 'Rotate', | 29 | 'button.rotate': 'Rotate', |
| 28 | 'button.print': 'Print', | 30 | 'button.print': 'Print', |
| 31 | 'button.settings': 'Settings', | ||
| 29 | select: 'Select Language', | 32 | select: 'Select Language', |
| 30 | }, | 33 | }, |
| 31 | }, | 34 | }, |
| @@ -80,6 +83,7 @@ const resources = { | |||
| 80 | 'Wachtwoord moet ten minste 8 tekens bevatten', | 83 | 'Wachtwoord moet ten minste 8 tekens bevatten', |
| 81 | 'button.rotate': 'Draai', | 84 | 'button.rotate': 'Draai', |
| 82 | 'button.print': 'Print', | 85 | 'button.print': 'Print', |
| 86 | 'button.settings': 'Instellingen', | ||
| 83 | select: 'Selecteer Taal', | 87 | select: 'Selecteer Taal', |
| 84 | }, | 88 | }, |
| 85 | }, | 89 | }, |
| @@ -105,6 +109,7 @@ const resources = { | |||
| 105 | 'wifi.alert.password.length.8': '密码至少 8 个字符', | 109 | 'wifi.alert.password.length.8': '密码至少 8 个字符', |
| 106 | 'button.rotate': '翻转', | 110 | 'button.rotate': '翻转', |
| 107 | 'button.print': '打印', | 111 | 'button.print': '打印', |
| 112 | 'button.settings': '设置', | ||
| 108 | select: '选择语言', | 113 | select: '选择语言', |
| 109 | }, | 114 | }, |
| 110 | }, | 115 | }, |
| @@ -130,6 +135,7 @@ const resources = { | |||
| 130 | 'wifi.alert.password.8': '密碼至少要有 8 個字符 ', | 135 | 'wifi.alert.password.8': '密碼至少要有 8 個字符 ', |
| 131 | 'button.rotate': '翻轉', | 136 | 'button.rotate': '翻轉', |
| 132 | 'button.print': '打印', | 137 | 'button.print': '打印', |
| 138 | 'button.settings': '设置', | ||
| 133 | select: '選擇語言', | 139 | select: '選擇語言', |
| 134 | }, | 140 | }, |
| 135 | }, | 141 | }, |
| @@ -159,6 +165,7 @@ const resources = { | |||
| 159 | 'La contraseña debe tener al menos 8 caracteres', | 165 | 'La contraseña debe tener al menos 8 caracteres', |
| 160 | 'button.rotate': 'Girar', | 166 | 'button.rotate': 'Girar', |
| 161 | 'button.print': 'Imprimir', | 167 | 'button.print': 'Imprimir', |
| 168 | 'button.settings': 'Ajustes', | ||
| 162 | select: 'Seleccionar idioma', | 169 | select: 'Seleccionar idioma', |
| 163 | }, | 170 | }, |
| 164 | }, | 171 | }, |
| @@ -185,6 +192,7 @@ const resources = { | |||
| 185 | 'wifi.alert.password.length.8': 'A senha precisa ter no mínimo 8 dígtos', | 192 | 'wifi.alert.password.length.8': 'A senha precisa ter no mínimo 8 dígtos', |
| 186 | 'button.rotate': 'Girar', | 193 | 'button.rotate': 'Girar', |
| 187 | 'button.print': 'Imprimir', | 194 | 'button.print': 'Imprimir', |
| 195 | 'button.settings': 'Definições', | ||
| 188 | select: 'Selecionar Idioma', | 196 | select: 'Selecionar Idioma', |
| 189 | }, | 197 | }, |
| 190 | }, | 198 | }, |
| @@ -212,6 +220,7 @@ const resources = { | |||
| 212 | 'パスワードは8文字以上でなければなりません', | 220 | 'パスワードは8文字以上でなければなりません', |
| 213 | 'button.rotate': '回転する', | 221 | 'button.rotate': '回転する', |
| 214 | 'button.print': '印刷する', | 222 | 'button.print': '印刷する', |
| 223 | 'button.settings': '設定', | ||
| 215 | select: '言語を選択', | 224 | select: '言語を選択', |
| 216 | }, | 225 | }, |
| 217 | }, | 226 | }, |
| @@ -240,6 +249,7 @@ const resources = { | |||
| 240 | 'Пароль должен состоять не менее чем из 8 символов', | 249 | 'Пароль должен состоять не менее чем из 8 символов', |
| 241 | 'button.rotate': 'Повернуть', | 250 | 'button.rotate': 'Повернуть', |
| 242 | 'button.print': 'Распечатать', | 251 | 'button.print': 'Распечатать', |
| 252 | 'button.settings': 'настройки', | ||
| 243 | select: 'Выбор языка', | 253 | select: 'Выбор языка', |
| 244 | }, | 254 | }, |
| 245 | }, | 255 | }, |
| @@ -266,6 +276,7 @@ const resources = { | |||
| 266 | 'wifi.alert.password.8': 'رمزعبور باید حداقل ۸ حرف داشته باشد.', | 276 | 'wifi.alert.password.8': 'رمزعبور باید حداقل ۸ حرف داشته باشد.', |
| 267 | 'button.rotate': 'چرخاندن', | 277 | 'button.rotate': 'چرخاندن', |
| 268 | 'button.print': 'چاپ', | 278 | 'button.print': 'چاپ', |
| 279 | 'button.settings': 'تنظیمات', | ||
| 269 | select: 'انتخاب زبان', | 280 | select: 'انتخاب زبان', |
| 270 | }, | 281 | }, |
| 271 | }, | 282 | }, |
| @@ -294,6 +305,7 @@ const resources = { | |||
| 294 | 'Пароль повинен містити принаймні 8 символів', | 305 | 'Пароль повинен містити принаймні 8 символів', |
| 295 | 'button.rotate': 'Повернути', | 306 | 'button.rotate': 'Повернути', |
| 296 | 'button.print': 'Друкувати', | 307 | 'button.print': 'Друкувати', |
| 308 | 'button.settings': 'налаштування', | ||
| 297 | select: 'Вибір мови', | 309 | select: 'Вибір мови', |
| 298 | }, | 310 | }, |
| 299 | }, | 311 | }, |
| @@ -322,6 +334,7 @@ const resources = { | |||
| 322 | 'Das Passwort muss mindestends 8 Zeichen lang sein', | 334 | 'Das Passwort muss mindestends 8 Zeichen lang sein', |
| 323 | 'button.rotate': 'Drehen', | 335 | 'button.rotate': 'Drehen', |
| 324 | 'button.print': 'Drucken', | 336 | 'button.print': 'Drucken', |
| 337 | 'button.settings': 'Einstellungen', | ||
| 325 | select: 'Sprache auswählen', | 338 | select: 'Sprache auswählen', |
| 326 | }, | 339 | }, |
| 327 | }, | 340 | }, |
| @@ -352,6 +365,7 @@ const resources = { | |||
| 352 | 'wifi.alert.password.8': 'Hasło musi mieć co najmniej 8 znaków', | 365 | 'wifi.alert.password.8': 'Hasło musi mieć co najmniej 8 znaków', |
| 353 | 'button.rotate': 'Obróć', | 366 | 'button.rotate': 'Obróć', |
| 354 | 'button.print': 'Drukuj', | 367 | 'button.print': 'Drukuj', |
| 368 | 'button.settings': 'Ustawienia', | ||
| 355 | select: 'Wybierz język', | 369 | select: 'Wybierz język', |
| 356 | }, | 370 | }, |
| 357 | }, | 371 | }, |
| @@ -380,6 +394,7 @@ const resources = { | |||
| 380 | 'Le mot de passe doit au moins faire 8 caractères', | 394 | 'Le mot de passe doit au moins faire 8 caractères', |
| 381 | 'button.rotate': 'Pivoter', | 395 | 'button.rotate': 'Pivoter', |
| 382 | 'button.print': 'Imprimer', | 396 | 'button.print': 'Imprimer', |
| 397 | 'button.settings': 'Paramètres', | ||
| 383 | select: 'Choisir la langue', | 398 | select: 'Choisir la langue', |
| 384 | }, | 399 | }, |
| 385 | }, | 400 | }, |
| @@ -407,6 +422,7 @@ const resources = { | |||
| 407 | 'wifi.alert.password.8': 'Lo senhal deu conténer almens 8 caractèrs', | 422 | 'wifi.alert.password.8': 'Lo senhal deu conténer almens 8 caractèrs', |
| 408 | 'button.rotate': 'Pivotar', | 423 | 'button.rotate': 'Pivotar', |
| 409 | 'button.print': 'Imprimir', | 424 | 'button.print': 'Imprimir', |
| 425 | 'button.settings': 'Paramètres', | ||
| 410 | select: 'Causir la lenga', | 426 | select: 'Causir la lenga', |
| 411 | }, | 427 | }, |
| 412 | }, | 428 | }, |
| @@ -434,6 +450,7 @@ const resources = { | |||
| 434 | 'wifi.alert.password.8': 'A Senha deve ter pelo menos 8 caracteres', | 450 | 'wifi.alert.password.8': 'A Senha deve ter pelo menos 8 caracteres', |
| 435 | 'button.rotate': 'Rotacionar', | 451 | 'button.rotate': 'Rotacionar', |
| 436 | 'button.print': 'Imprimir', | 452 | 'button.print': 'Imprimir', |
| 453 | 'button.settings': 'Definições', | ||
| 437 | select: 'Escolha o idioma', | 454 | select: 'Escolha o idioma', |
| 438 | }, | 455 | }, |
| 439 | }, | 456 | }, |
| @@ -462,6 +479,7 @@ const resources = { | |||
| 462 | 'La password deve contenere almeno 8 caratteri', | 479 | 'La password deve contenere almeno 8 caratteri', |
| 463 | 'button.rotate': 'Ruota', | 480 | 'button.rotate': 'Ruota', |
| 464 | 'button.print': 'Stampa', | 481 | 'button.print': 'Stampa', |
| 482 | 'button.settings': 'Impostazioni', | ||
| 465 | select: 'Seleziona una lingua', | 483 | select: 'Seleziona una lingua', |
| 466 | }, | 484 | }, |
| 467 | }, | 485 | }, |
| @@ -488,6 +506,7 @@ const resources = { | |||
| 488 | 'wifi.alert.password.length.8': 'Parola en az 8 karakter olmalıdır', | 506 | 'wifi.alert.password.length.8': 'Parola en az 8 karakter olmalıdır', |
| 489 | 'button.rotate': 'Döndür', | 507 | 'button.rotate': 'Döndür', |
| 490 | 'button.print': 'Yazdır', | 508 | 'button.print': 'Yazdır', |
| 509 | 'button.settings': 'Ayarlar', | ||
| 491 | select: 'Dil Seçin', | 510 | select: 'Dil Seçin', |
| 492 | }, | 511 | }, |
| 493 | }, | 512 | }, |
| @@ -516,6 +535,7 @@ const resources = { | |||
| 516 | 'يجب أن تكون كلمة المرور مكونة من ٨ أحرف على الأقل', | 535 | 'يجب أن تكون كلمة المرور مكونة من ٨ أحرف على الأقل', |
| 517 | 'button.rotate': 'تدوير', | 536 | 'button.rotate': 'تدوير', |
| 518 | 'button.print': 'طباعة', | 537 | 'button.print': 'طباعة', |
| 538 | 'button.settings': 'إعدادات', | ||
| 519 | select: 'اختر لغة', | 539 | select: 'اختر لغة', |
| 520 | }, | 540 | }, |
| 521 | }, | 541 | }, |
| @@ -544,6 +564,7 @@ const resources = { | |||
| 544 | 'पासवर्ड कम से कम 8 अक्षरों का होना चाहिए', | 564 | 'पासवर्ड कम से कम 8 अक्षरों का होना चाहिए', |
| 545 | 'button.rotate': 'घुमाएँ', | 565 | 'button.rotate': 'घुमाएँ', |
| 546 | 'button.print': 'प्रिंट करे', | 566 | 'button.print': 'प्रिंट करे', |
| 567 | 'button.settings': 'समायोजन', | ||
| 547 | select: 'भाषा चुने', | 568 | select: 'भाषा चुने', |
| 548 | }, | 569 | }, |
| 549 | }, | 570 | }, |
| @@ -568,10 +589,11 @@ const resources = { | |||
| 568 | 'wifi.alert.name': 'El nom de la xarxa no pot estar buit', | 589 | 'wifi.alert.name': 'El nom de la xarxa no pot estar buit', |
| 569 | 'wifi.alert.password.length.5': | 590 | 'wifi.alert.password.length.5': |
| 570 | 'La contrasenya ha de tenir com a mínim 5 caràcters', | 591 | 'La contrasenya ha de tenir com a mínim 5 caràcters', |
| 571 | 'wifi.alert.password.8': | 592 | 'wifi.alert.password.length.8': |
| 572 | 'La contrasenya ha de tenir com a mínim 8 caràcters', | 593 | 'La contrasenya ha de tenir com a mínim 8 caràcters', |
| 573 | 'button.rotate': 'Gira', | 594 | 'button.rotate': 'Gira', |
| 574 | 'button.print': 'Imprimeix', | 595 | 'button.print': 'Imprimeix', |
| 596 | 'button.settings': 'Configuració', | ||
| 575 | select: 'Escolliu l’idioma', | 597 | select: 'Escolliu l’idioma', |
| 576 | }, | 598 | }, |
| 577 | }, | 599 | }, |
| @@ -595,9 +617,10 @@ const resources = { | |||
| 595 | 'Arahkan kamera ponsel anda ke Kode QR untuk terhubung ke WiFi secara otomatis', | 617 | 'Arahkan kamera ponsel anda ke Kode QR untuk terhubung ke WiFi secara otomatis', |
| 596 | 'wifi.alert.name': 'Nama jaringan tidak boleh kosong', | 618 | 'wifi.alert.name': 'Nama jaringan tidak boleh kosong', |
| 597 | 'wifi.alert.password.length.5': 'Kata sandi minimal harus 5 karakter', | 619 | 'wifi.alert.password.length.5': 'Kata sandi minimal harus 5 karakter', |
| 598 | 'wifi.alert.password.8': 'Kata sandi minimal harus 8 karakter', | 620 | 'wifi.alert.password.length.8': 'Kata sandi minimal harus 8 karakter', |
| 599 | 'button.rotate': 'Putar', | 621 | 'button.rotate': 'Putar', |
| 600 | 'button.print': 'Cetak', | 622 | 'button.print': 'Cetak', |
| 623 | 'button.settings': 'Pengaturan', | ||
| 601 | select: 'Pilih Bahasa', | 624 | select: 'Pilih Bahasa', |
| 602 | }, | 625 | }, |
| 603 | }, | 626 | }, |
