Skip to content

Commit

Permalink
standarized names for wifi alert min 8 characters (bndw#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
olekstomek authored Jul 24, 2021
1 parent f38a27a commit cab1ddb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Card = () => {
const onPrint = () => {
if (network.ssid.length > 0) {
if (network.password.length < 8 && network.encryptionMode === 'WPA') {
alert(t('wifi.alert.password.8'));
alert(t('wifi.alert.password.length.8'));
} else if (
network.password.length < 5 &&
network.encryptionMode === 'WEP'
Expand Down
20 changes: 12 additions & 8 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const resources = {
"Point your phone's camera at the QR Code to connect automatically",
'wifi.alert.name': 'Network name cannot be empty',
'wifi.alert.password.length.5': 'Password must be at least 5 characters',
'wifi.alert.password.8': 'Password must be at least 8 characters',
'wifi.alert.password.length.8': 'Password must be at least 8 characters',
'button.rotate': 'Rotate',
'button.print': 'Print',
select: 'Select Language',
Expand All @@ -48,7 +48,8 @@ const resources = {
'wifi.alert.name': 'Netwerk naam kan niet leeg zijn',
'wifi.alert.password.length.5':
'Wachtwoord moet ten minste 5 tekens bevatten',
'wifi.alert.password.8': 'Wachtwoord moet ten minste 8 tekens bevatten',
'wifi.alert.password.length.8':
'Wachtwoord moet ten minste 8 tekens bevatten',
'button.rotate': 'Draai',
'button.print': 'Print',
select: 'Selecteer Taal',
Expand All @@ -72,7 +73,7 @@ const resources = {
'wifi.tip': '将手机摄像头对准二维码即可自动连接',
'wifi.alert.name': '网络名称不能为空',
'wifi.alert.password.length.5': '密码至少 5 个字符',
'wifi.alert.password.8': '密码至少 8 个字符',
'wifi.alert.password.length.8': '密码至少 8 个字符',
'button.rotate': '翻转',
'button.print': '打印',
select: '选择语言',
Expand All @@ -99,7 +100,8 @@ const resources = {
'wifi.alert.name': 'El nombre de la red no puede estar vacío',
'wifi.alert.password.length.5':
'La contraseña debe tener al menos 5 caracteres',
'wifi.alert.password.8': 'La contraseña debe tener al menos 8 caracteres',
'wifi.alert.password.length.8':
'La contraseña debe tener al menos 8 caracteres',
'button.rotate': 'Girar',
'button.print': 'Imprimir',
select: 'Seleccionar idioma',
Expand All @@ -124,7 +126,7 @@ const resources = {
'Abra o aplicativo de câmera no seu telemóvel e aponte para o QR Code para conectar-se automaticamente.',
'wifi.alert.name': 'O Nome da rede não pode ficar em branco',
'wifi.alert.password.length.5': 'A senha precisa ter no mímimo 4 digítos',
'wifi.alert.password.8': 'A senha precisa ter no mímimo 8 digítos',
'wifi.alert.password.length.8': 'A senha precisa ter no mímimo 8 digítos',
'button.rotate': 'Girar',
'button.print': 'Imprimir',
select: 'Selecionar Linguagem',
Expand All @@ -149,7 +151,8 @@ const resources = {
'wifi.alert.name': 'ネットワーク名は空にできません',
'wifi.alert.password.length.5':
'パスワードは5文字以上でなければなりません',
'wifi.alert.password.8': 'パスワードは8文字以上でなければなりません',
'wifi.alert.password.length.8':
'パスワードは8文字以上でなければなりません',
'button.rotate': '回転する',
'button.print': '印刷する',
select: '言語を選択',
Expand All @@ -175,7 +178,7 @@ const resources = {
'wifi.alert.name': 'Название сети не может быть пустым',
'wifi.alert.password.length.5':
'Пароль должен состоять не менее чем из 5 символов',
'wifi.alert.password.8':
'wifi.alert.password.length.8':
'Пароль должен состоять не менее чем из 8 символов',
'button.rotate': 'Повернуть',
'button.print': 'Распечатать',
Expand All @@ -202,7 +205,8 @@ const resources = {
'wifi.alert.name': 'Назва мережі не може бути порожньою',
'wifi.alert.password.length.5':
'Пароль повинен містити принаймні 5 символів',
'wifi.alert.password.8': 'Пароль повинен містити принаймні 8 символів',
'wifi.alert.password.length.8':
'Пароль повинен містити принаймні 8 символів',
'button.rotate': 'Повернути',
'button.print': 'Друкувати',
select: 'Вибір мови',
Expand Down

0 comments on commit cab1ddb

Please sign in to comment.