Skip to content

Commit 389f0d6

Browse files
committed
fix issue in italian translation json, add to dropdown
1 parent 6d92b65 commit 389f0d6

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

client/components/Nav.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,16 @@ class Nav extends React.PureComponent {
677677
한국어
678678
</button>
679679
</li>
680+
<li className="nav__dropdown-item">
681+
<button
682+
onFocus={this.handleFocusForLang}
683+
onBlur={this.handleBlur}
684+
value="it"
685+
onClick={(e) => this.handleLangSelection(e)}
686+
>
687+
Italiano
688+
</button>
689+
</li>
680690
<li className="nav__dropdown-item">
681691
<button
682692
onFocus={this.handleFocusForLang}

client/i18n.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
es,
88
ja,
99
hi,
10+
it,
1011
ko,
1112
ptBR,
1213
de,
@@ -24,6 +25,7 @@ const availableLanguages = [
2425
'es-419',
2526
'fr-CA',
2627
'hi',
28+
'it',
2729
'ja',
2830
'ko',
2931
'pt-BR',
@@ -40,6 +42,7 @@ export function languageKeyToLabel(lang) {
4042
'es-419': 'Español',
4143
'fr-CA': 'Français',
4244
hi: 'हिन्दी',
45+
it: 'Italiano',
4346
ja: '日本語',
4447
ko: '한국어',
4548
'pt-BR': 'Português',
@@ -58,6 +61,7 @@ export function languageKeyToDateLocale(lang) {
5861
'es-419': es,
5962
'fr-CA': frCA,
6063
hi,
64+
it,
6165
ja,
6266
ko,
6367
'pt-BR': ptBR,

translations/locales/it-IT/translations.json renamed to translations/locales/it/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
"Summary": "I codici di accesso personali funzionano da password per permettere ai tuoi script\n di accedere automaticamente all'API dell'Editor. Crea un codice per ogni script\n che necessita dell'accesso.",
318318
"CreateToken": "Crea nuovo codice",
319319
"TokenLabel": "Per che cos'è questo codice?",
320-
"TokenPlaceholder": ""Per che cos'è questo codice? i.e. Script importazione sketch",
320+
"TokenPlaceholder": "Per che cos'è questo codice? i.e. Script importazione sketch",
321321
"CreateTokenSubmit": "Crea",
322322
"NoTokens": "Non hai codici esistenti.",
323323
"NewTokenTitle": "Il tuo nuovo codice di accesso",

0 commit comments

Comments
 (0)