aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Card.js2
-rw-r--r--src/i18n.js20
2 files changed, 13 insertions, 9 deletions
diff --git a/src/components/Card.js b/src/components/Card.js
index 85bbb62..fc3e4da 100644
--- a/src/components/Card.js
+++ b/src/components/Card.js
@@ -32,7 +32,7 @@ export const Card = () => {
32 const onPrint = () => { 32 const onPrint = () => {
33 if (network.ssid.length > 0) { 33 if (network.ssid.length > 0) {
34 if (network.password.length < 8 && network.encryptionMode === 'WPA') { 34 if (network.password.length < 8 && network.encryptionMode === 'WPA') {
35 alert(t('wifi.alert.password.8')); 35 alert(t('wifi.alert.password.length.8'));
36 } else if ( 36 } else if (
37 network.password.length < 5 && 37 network.password.length < 5 &&
38 network.encryptionMode === 'WEP' 38 network.encryptionMode === 'WEP'
diff --git a/src/i18n.js b/src/i18n.js
index b8643bb..ef7bf2b 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -22,7 +22,7 @@ const resources = {
22 "Point your phone's camera at the QR Code to connect automatically", 22 "Point your phone's camera at the QR Code to connect automatically",
23 'wifi.alert.name': 'Network name cannot be empty', 23 'wifi.alert.name': 'Network name cannot be empty',
24 'wifi.alert.password.length.5': 'Password must be at least 5 characters', 24 'wifi.alert.password.length.5': 'Password must be at least 5 characters',
25 'wifi.alert.password.8': 'Password must be at least 8 characters', 25 'wifi.alert.password.length.8': 'Password must be at least 8 characters',
26 'button.rotate': 'Rotate', 26 'button.rotate': 'Rotate',
27 'button.print': 'Print', 27 'button.print': 'Print',
28 select: 'Select Language', 28 select: 'Select Language',
@@ -48,7 +48,8 @@ const resources = {
48 'wifi.alert.name': 'Netwerk naam kan niet leeg zijn', 48 'wifi.alert.name': 'Netwerk naam kan niet leeg zijn',
49 'wifi.alert.password.length.5': 49 'wifi.alert.password.length.5':
50 'Wachtwoord moet ten minste 5 tekens bevatten', 50 'Wachtwoord moet ten minste 5 tekens bevatten',
51 'wifi.alert.password.8': 'Wachtwoord moet ten minste 8 tekens bevatten', 51 'wifi.alert.password.length.8':
52 'Wachtwoord moet ten minste 8 tekens bevatten',
52 'button.rotate': 'Draai', 53 'button.rotate': 'Draai',
53 'button.print': 'Print', 54 'button.print': 'Print',
54 select: 'Selecteer Taal', 55 select: 'Selecteer Taal',
@@ -72,7 +73,7 @@ const resources = {
72 'wifi.tip': '将手机摄像头对准二维码即可自动连接', 73 'wifi.tip': '将手机摄像头对准二维码即可自动连接',
73 'wifi.alert.name': '网络名称不能为空', 74 'wifi.alert.name': '网络名称不能为空',
74 'wifi.alert.password.length.5': '密码至少 5 个字符', 75 'wifi.alert.password.length.5': '密码至少 5 个字符',
75 'wifi.alert.password.8': '密码至少 8 个字符', 76 'wifi.alert.password.length.8': '密码至少 8 个字符',
76 'button.rotate': '翻转', 77 'button.rotate': '翻转',
77 'button.print': '打印', 78 'button.print': '打印',
78 select: '选择语言', 79 select: '选择语言',
@@ -99,7 +100,8 @@ const resources = {
99 'wifi.alert.name': 'El nombre de la red no puede estar vacío', 100 'wifi.alert.name': 'El nombre de la red no puede estar vacío',
100 'wifi.alert.password.length.5': 101 'wifi.alert.password.length.5':
101 'La contraseña debe tener al menos 5 caracteres', 102 'La contraseña debe tener al menos 5 caracteres',
102 'wifi.alert.password.8': 'La contraseña debe tener al menos 8 caracteres', 103 'wifi.alert.password.length.8':
104 'La contraseña debe tener al menos 8 caracteres',
103 'button.rotate': 'Girar', 105 'button.rotate': 'Girar',
104 'button.print': 'Imprimir', 106 'button.print': 'Imprimir',
105 select: 'Seleccionar idioma', 107 select: 'Seleccionar idioma',
@@ -124,7 +126,7 @@ const resources = {
124 'Abra o aplicativo de câmera no seu telemóvel e aponte para o QR Code para conectar-se automaticamente.', 126 'Abra o aplicativo de câmera no seu telemóvel e aponte para o QR Code para conectar-se automaticamente.',
125 'wifi.alert.name': 'O Nome da rede não pode ficar em branco', 127 'wifi.alert.name': 'O Nome da rede não pode ficar em branco',
126 'wifi.alert.password.length.5': 'A senha precisa ter no mímimo 4 digítos', 128 'wifi.alert.password.length.5': 'A senha precisa ter no mímimo 4 digítos',
127 'wifi.alert.password.8': 'A senha precisa ter no mímimo 8 digítos', 129 'wifi.alert.password.length.8': 'A senha precisa ter no mímimo 8 digítos',
128 'button.rotate': 'Girar', 130 'button.rotate': 'Girar',
129 'button.print': 'Imprimir', 131 'button.print': 'Imprimir',
130 select: 'Selecionar Linguagem', 132 select: 'Selecionar Linguagem',
@@ -149,7 +151,8 @@ const resources = {
149 'wifi.alert.name': 'ネットワーク名は空にできません', 151 'wifi.alert.name': 'ネットワーク名は空にできません',
150 'wifi.alert.password.length.5': 152 'wifi.alert.password.length.5':
151 'パスワードは5文字以上でなければなりません', 153 'パスワードは5文字以上でなければなりません',
152 'wifi.alert.password.8': 'パスワードは8文字以上でなければなりません', 154 'wifi.alert.password.length.8':
155 'パスワードは8文字以上でなければなりません',
153 'button.rotate': '回転する', 156 'button.rotate': '回転する',
154 'button.print': '印刷する', 157 'button.print': '印刷する',
155 select: '言語を選択', 158 select: '言語を選択',
@@ -175,7 +178,7 @@ const resources = {
175 'wifi.alert.name': 'Название сети не может быть пустым', 178 'wifi.alert.name': 'Название сети не может быть пустым',
176 'wifi.alert.password.length.5': 179 'wifi.alert.password.length.5':
177 'Пароль должен состоять не менее чем из 5 символов', 180 'Пароль должен состоять не менее чем из 5 символов',
178 'wifi.alert.password.8': 181 'wifi.alert.password.length.8':
179 'Пароль должен состоять не менее чем из 8 символов', 182 'Пароль должен состоять не менее чем из 8 символов',
180 'button.rotate': 'Повернуть', 183 'button.rotate': 'Повернуть',
181 'button.print': 'Распечатать', 184 'button.print': 'Распечатать',
@@ -202,7 +205,8 @@ const resources = {
202 'wifi.alert.name': 'Назва мережі не може бути порожньою', 205 'wifi.alert.name': 'Назва мережі не може бути порожньою',
203 'wifi.alert.password.length.5': 206 'wifi.alert.password.length.5':
204 'Пароль повинен містити принаймні 5 символів', 207 'Пароль повинен містити принаймні 5 символів',
205 'wifi.alert.password.8': 'Пароль повинен містити принаймні 8 символів', 208 'wifi.alert.password.length.8':
209 'Пароль повинен містити принаймні 8 символів',
206 'button.rotate': 'Повернути', 210 'button.rotate': 'Повернути',
207 'button.print': 'Друкувати', 211 'button.print': 'Друкувати',
208 select: 'Вибір мови', 212 select: 'Вибір мови',