Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
2e95f682
Unverified
Commit
2e95f682
authored
Jan 02, 2023
by
Vincenzo Cardone
Committed by
GitHub
Jan 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add Italian Translation (#890)
parent
51950122
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
269 additions
and
6 deletions
+269
-6
user_setting.go
api/user_setting.go
+1
-1
LocaleSelect.tsx
web/src/components/LocaleSelect.tsx
+1
-0
UpdateAccountDialog.tsx
web/src/components/UpdateAccountDialog.tsx
+6
-4
i18n.ts
web/src/i18n.ts
+4
-0
it.json
web/src/locales/it.json
+256
-0
i18n.d.ts
web/src/types/i18n.d.ts
+1
-1
No files found.
api/user_setting.go
View file @
2e95f682
...
...
@@ -36,7 +36,7 @@ func (key UserSettingKey) String() string {
}
var
(
UserSettingLocaleValue
=
[]
string
{
"en"
,
"zh"
,
"vi"
,
"fr"
,
"nl"
,
"sv"
,
"de"
,
"es"
,
"uk"
,
"ru"
}
UserSettingLocaleValue
=
[]
string
{
"en"
,
"zh"
,
"vi"
,
"fr"
,
"nl"
,
"sv"
,
"de"
,
"es"
,
"uk"
,
"ru"
,
"it"
}
UserSettingAppearanceValue
=
[]
string
{
"system"
,
"light"
,
"dark"
}
UserSettingMemoVisibilityValue
=
[]
Visibility
{
Private
,
Protected
,
Public
}
UserSettingMemoDisplayTsOptionKeyValue
=
[]
string
{
"created_ts"
,
"updated_ts"
}
...
...
web/src/components/LocaleSelect.tsx
View file @
2e95f682
...
...
@@ -32,6 +32,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {
<
Option
value=
"es"
>
Español
</
Option
>
<
Option
value=
"uk"
>
Українська
</
Option
>
<
Option
value=
"ru"
>
Русский
</
Option
>
<
Option
value=
"it"
>
Italiano
</
Option
>
</
Select
>
);
};
...
...
web/src/components/UpdateAccountDialog.tsx
View file @
2e95f682
...
...
@@ -103,23 +103,25 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
return
(
<>
<
div
className=
"dialog-header-container !w-64"
>
<
p
className=
"title-text"
>
Update information
</
p
>
<
p
className=
"title-text"
>
{
t
(
"setting.account-section.update-information"
)
}
</
p
>
<
button
className=
"btn close-btn"
onClick=
{
handleCloseBtnClick
}
>
<
Icon
.
X
/>
</
button
>
</
div
>
<
div
className=
"dialog-content-container"
>
<
p
className=
"text-sm mb-1"
>
Nickname
<
span
className=
"text-sm text-gray-400 ml-1"
>
(Display in the banner)
</
span
>
{
t
(
"common.nickname"
)
}
<
span
className=
"text-sm text-gray-400 ml-1"
>
(Display in the banner)
</
span
>
</
p
>
<
input
type=
"text"
className=
"input-text"
value=
{
state
.
nickname
}
onChange=
{
handleNicknameChanged
}
/>
<
p
className=
"text-sm mb-1 mt-2"
>
Username
{
t
(
"common.username"
)
}
<
span
className=
"text-sm text-gray-400 ml-1"
>
(Using to sign in)
</
span
>
</
p
>
<
input
type=
"text"
className=
"input-text"
value=
{
state
.
username
}
onChange=
{
handleUsernameChanged
}
/>
<
p
className=
"text-sm mb-1 mt-2"
>
Email
<
span
className=
"text-sm text-gray-400 ml-1"
>
(Optional)
</
span
>
{
t
(
"common.email"
)
}
<
span
className=
"text-sm text-gray-400 ml-1"
>
(Optional)
</
span
>
</
p
>
<
input
type=
"text"
className=
"input-text"
value=
{
state
.
email
}
onChange=
{
handleEmailChanged
}
/>
<
div
className=
"mt-4 w-full flex flex-row justify-end items-center space-x-2"
>
...
...
web/src/i18n.ts
View file @
2e95f682
...
...
@@ -10,6 +10,7 @@ import deLocale from "./locales/de.json";
import
esLocale
from
"./locales/es.json"
;
import
ukLocale
from
"./locales/uk.json"
;
import
ruLocale
from
"./locales/ru.json"
;
import
itLocale
from
"./locales/it.json"
;
i18n
.
use
(
initReactI18next
).
init
({
resources
:
{
...
...
@@ -43,6 +44,9 @@ i18n.use(initReactI18next).init({
ru
:
{
translation
:
ruLocale
,
},
it
:
{
translation
:
itLocale
,
},
},
lng
:
"nl"
,
fallbackLng
:
"en"
,
...
...
web/src/locales/it.json
0 → 100644
View file @
2e95f682
{
"common"
:
{
"about"
:
"Informazioni"
,
"email"
:
"Email"
,
"password"
:
"Password"
,
"repeat-password-short"
:
"Ripeti"
,
"repeat-password"
:
"Ripeti la password"
,
"new-password"
:
"Nuova password"
,
"repeat-new-password"
:
"Ripeti la nuova password"
,
"username"
:
"Nome utente"
,
"nickname"
:
"Soprannome"
,
"save"
:
"Salva"
,
"close"
:
"Chiudi"
,
"cancel"
:
"Cancella"
,
"create"
:
"Crea"
,
"change"
:
"Cambia"
,
"confirm"
:
"Conferma"
,
"reset"
:
"Ripristina"
,
"language"
:
"Lingua"
,
"version"
:
"Versione"
,
"pin"
:
"Attacca"
,
"unpin"
:
"Stacca"
,
"edit"
:
"Modifica"
,
"restore"
:
"Ripristina"
,
"delete"
:
"Rimuovi"
,
"null"
:
"Null"
,
"share"
:
"Condividi"
,
"archive"
:
"Archivia"
,
"basic"
:
"Base"
,
"admin"
:
"Amministratore"
,
"explore"
:
"Esplora"
,
"sign-in"
:
"Accedi"
,
"sign-up"
:
"Registrati"
,
"sign-out"
:
"Esci"
,
"back-to-home"
:
"Ritorna alla Home"
,
"type"
:
"Tipo"
,
"shortcuts"
:
"Scorciatoie"
,
"title"
:
"Titolo"
,
"filter"
:
"Filtro"
,
"tags"
:
"Etichette"
,
"yourself"
:
"Te stesso"
,
"archived-at"
:
"Archiviato il"
,
"changed"
:
"cambiato"
,
"update-on"
:
"Aggiornato il"
,
"fold"
:
"Piega"
,
"expand"
:
"Espandi"
,
"image"
:
"Immagine"
,
"link"
:
"Link"
,
"vacuum"
:
"Pulisci"
,
"select"
:
"Seleziona"
},
"slogan"
:
"An open-source, self-hosted memo hub with knowledge management and socialization."
,
"auth"
:
{
"signup-as-host"
:
"Registrati come Host"
,
"host-tip"
:
"Ti stai registrando come Host del sito."
,
"not-host-tip"
:
"Se non hai un account, contatta l'host del sito."
},
"sidebar"
:
{
"daily-review"
:
"Oggi"
,
"resources"
:
"Risorse"
,
"setting"
:
"Impostazioni"
,
"archived"
:
"Archiviati"
},
"daily-review"
:
{
"oops-nothing"
:
"Oops, non c'è niente."
},
"resources"
:
{
"description"
:
"Visualizza le tue risorse statiche nei memo. es: immagini"
,
"no-resources"
:
"Nessuna risorsa."
,
"fetching-data"
:
"recupero i dati..."
,
"upload"
:
"Carica"
,
"preview"
:
"Anteprima"
,
"copy-link"
:
"Copia link"
,
"delete-resource"
:
"Cancella risorsa"
,
"warning-text"
:
"Sei sicuro di voler eliminare questa risorsa? QUESTA AZIONE È IRREVERSIBILE❗"
,
"linked-amount"
:
"Linked memo amount"
,
"rename"
:
"Rinomina"
,
"clear-unused-resources"
:
"Elimina le risorse inutilizzate"
,
"warning-text-unused"
:
"Sei sicuro di voler eliminare queste risorse? QUESTA AZIONE È IRREVERSIBILE❗"
,
"no-unused-resources"
:
"Nessuna risorsa inutilizzata"
,
"name"
:
"Nome"
},
"archived"
:
{
"archived-memos"
:
"Memo archiviati"
,
"no-archived-memos"
:
"Nessun memo archiviato."
,
"fetching-data"
:
"recupero i dati..."
},
"editor"
:
{
"editing"
:
"Modifica in corso..."
,
"cancel-edit"
:
"Annulla modifica"
,
"save"
:
"Salva"
,
"placeholder"
:
"Idee..."
,
"only-image-supported"
:
"Solo file immagine supportati."
,
"cant-empty"
:
"Il contenuto non può essere vuoto"
,
"local"
:
"Locale"
,
"resources"
:
"Risorse"
},
"memo"
:
{
"view-detail"
:
"Vedi dettagli"
,
"copy"
:
"Copia"
,
"visibility"
:
{
"private"
:
"Visibile solo a te"
,
"protected"
:
"Visibile ai membri"
,
"public"
:
"Visibile a tutti"
}
},
"memo-list"
:
{
"fetching-data"
:
"recupero i dati..."
,
"fetch-more"
:
"Clicca per caricare più dati"
},
"shortcut-list"
:
{
"shortcut-title"
:
"titolo Scorciatoia"
,
"create-shortcut"
:
"Crea Scorciatoia"
,
"edit-shortcut"
:
"Modifica Scorciatoia"
,
"eligible-memo"
:
"eligible memo"
,
"fill-previous"
:
"Compila il valore del filtro precedente"
,
"title-required"
:
"Il titolo è obbligatorio"
,
"value-required"
:
"Il valore del filtro è obbligatorio"
},
"filter"
:
{
"new-filter"
:
"Nuovo Filtro"
,
"type"
:
{
"tag"
:
"Etichetta"
,
"type"
:
"Tipo"
,
"text"
:
"Testo"
,
"display-time"
:
"Data"
,
"visibility"
:
"Visibilità"
},
"operator"
:
{
"contains"
:
"Contiene"
,
"not-contains"
:
"Non contiene"
,
"is"
:
"È"
,
"is-not"
:
"Non è"
,
"before"
:
"Prima"
,
"after"
:
"Dopo"
},
"value"
:
{
"not-tagged"
:
"senza etichetta"
,
"linked"
:
"con link"
},
"text-placeholder"
:
"Inizia con ^ per usare le regex"
},
"tag-list"
:
{
"tip-text"
:
"Scrivi `#tag` per crearla"
},
"search"
:
{
"quickly-filter"
:
"Filtro rapido"
},
"setting"
:
{
"my-account"
:
"Il mio account"
,
"preference"
:
"Preferenze"
,
"member"
:
"Membri"
,
"member-list"
:
"Lista membri"
,
"system"
:
"Sistema"
,
"account-section"
:
{
"title"
:
"Informazioni account"
,
"update-information"
:
"Aggiorna informazioni"
,
"change-password"
:
"Cambia password"
},
"preference-section"
:
{
"theme"
:
"Tema"
,
"default-memo-visibility"
:
"Visibilità predefinita memo"
,
"enable-folding-memo"
:
"Enable folding memo"
,
"enable-powerful-editor"
:
"Abilitata editor avanzato"
,
"editor-font-style"
:
"Editor font style"
,
"mobile-editor-style"
:
"Mobile editor style"
,
"default-memo-sort-option"
:
"Ordine visualizzazione memo"
,
"created_ts"
:
"Data di creazione"
,
"updated_ts"
:
"Ultima modifica"
},
"member-section"
:
{
"create-a-member"
:
"Crea un membro"
},
"system-section"
:
{
"server-name"
:
"Nome server"
,
"customize-server"
:
{
"title"
:
"Personalizza Server"
,
"default"
:
"Predefinito: memos"
,
"icon-url"
:
"URL Icona"
},
"database-file-size"
:
"Dimensione file database"
,
"allow-user-signup"
:
"Consenti registrazione utenti"
,
"additional-style"
:
"Stile aggiuntivo"
,
"additional-script"
:
"Script aggiuntivo"
,
"additional-style-placeholder"
:
"Codice CSS aggiuntivo"
,
"additional-script-placeholder"
:
"Codice JavaScript aggiuntivo"
},
"apperance-option"
:
{
"system"
:
"Sistema"
,
"light"
:
"Chiaro"
,
"dark"
:
"Scuro"
}
},
"amount-text"
:
{
"memo_one"
:
"MEMO"
,
"memo_other"
:
"MEMOS"
,
"tag_one"
:
"TAG"
,
"tag_other"
:
"TAGS"
,
"day_one"
:
"GIORNO"
,
"day_other"
:
"GIORNI"
},
"message"
:
{
"no-memos"
:
"nessun memo 🌃"
,
"memos-ready"
:
"Tutti i memo sono stati caricati 🎉"
,
"restored-successfully"
:
"Ripristinato con successo"
,
"memo-updated-datetime"
:
"La data di creazione del Memo è stata modificata."
,
"invalid-created-datetime"
:
"Data di creazione non valida."
,
"change-memo-created-time"
:
"Cambia la data di creazione del Memo"
,
"memo-not-found"
:
"Memo non trovato."
,
"fill-all"
:
"Compila tutti i campi."
,
"password-not-match"
:
"Le passwords non corrispondono."
,
"new-password-not-match"
:
"Le nuove password non corrispondono."
,
"image-load-failed"
:
"Caricamento dell'immagine non riuscito"
,
"fill-form"
:
"Compila questo modulo"
,
"login-failed"
:
"Accesso fallito"
,
"signup-failed"
:
"Registrazione fallita"
,
"user-not-found"
:
"Utente non trovato"
,
"password-changed"
:
"Password cambiata"
,
"private-only"
:
"Questo memo è solo privato."
,
"copied"
:
"Copiato"
,
"succeed-copy-content"
:
"Contenuto copiato negli appunti."
,
"succeed-copy-link"
:
"Link copiato negli appunti."
,
"change-resource-filename"
:
"Modifica il nome del file della risorsa"
,
"resource-filename-updated"
:
"Nome file risorsa modificato."
,
"invalid-resource-filename"
:
"Nome del file non valido."
,
"click-to-save-the-image"
:
"Clicca per salvare l'immagine"
,
"generating-the-screenshot"
:
"Generazione dello screenshot..."
,
"count-selected-resources"
:
"Totale selezionati"
,
"too-short"
:
"Troppo corto"
,
"too-long"
:
"Troppo lungo"
,
"not-allow-space"
:
"Non permettere spazi"
,
"not-allow-chinese"
:
"Non permettere cinese"
,
"succeed-vacuum-database"
:
"Database pulito con successo"
,
"succeed-update-additional-style"
:
"Stile aggiuntivo aggiornato con successo"
,
"succeed-copy-resource-link"
:
"Link della risorsa copiato con successo"
,
"succeed-update-customized-profile"
:
"Profilo aggiornato con successo"
,
"succeed-update-additional-script"
:
"Script aggiuntivo aggiornato con successo"
,
"update-succeed"
:
"Aggiornamento riuscito"
},
"days"
:
{
"monday"
:
"Lunedì"
,
"mon"
:
"Lun"
,
"tuesday"
:
"Martedì"
,
"tue"
:
"Mar"
,
"wednesday"
:
"Mercoledì"
,
"wed"
:
"Mer"
,
"thursday"
:
"Giovedì"
,
"thu"
:
"Gio"
,
"friday"
:
"Venerdì"
,
"fri"
:
"Ven"
,
"saturday"
:
"Sabato"
,
"sat"
:
"Sab"
,
"sunday"
:
"Domenica"
,
"sun"
:
"Dom"
}
}
web/src/types/i18n.d.ts
View file @
2e95f682
type
Locale
=
"en"
|
"zh"
|
"vi"
|
"fr"
|
"nl"
|
"sv"
|
"de"
|
"es"
|
"uk"
|
"ru"
;
type
Locale
=
"en"
|
"zh"
|
"vi"
|
"fr"
|
"nl"
|
"sv"
|
"de"
|
"es"
|
"uk"
|
"ru"
|
"it"
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment