Skip to content

Commit

Permalink
Add Italian localization
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaJack authored and deluan committed Apr 17, 2020
1 parent d09a218 commit d117d57
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/package.json
Expand Up @@ -12,6 +12,7 @@
"md5-hex": "^3.0.1",
"prop-types": "^15.7.2",
"ra-data-json-server": "^3.3.3",
"ra-language-italian": "^3.0.0",
"ra-language-portuguese": "^1.6.0",
"react": "^16.13.1",
"react-admin": "^3.3.3",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/index.js
@@ -1,5 +1,6 @@
import deepmerge from 'deepmerge'
import en from './en'
import it from './it'
import pt from './pt'

const addLanguages = (lang) => {
Expand All @@ -8,7 +9,7 @@ const addLanguages = (lang) => {
const languages = { en }

// Add new languages to the object bellow
addLanguages({ pt })
addLanguages({ it, pt })

// "Hack" to make "albumSongs" resource use the same translations as "song"
Object.keys(languages).forEach(
Expand Down
127 changes: 127 additions & 0 deletions ui/src/i18n/it.js
@@ -0,0 +1,127 @@
import deepmerge from 'deepmerge'
import italianMessages from 'ra-language-italian'

export default deepmerge(italianMessages, {
languageName: 'Italiano',
resources: {
song: {
name: 'Traccia |||| Tracce',
fields: {
title: 'Titolo',
artist: 'Artista',
album: 'Album',
path: 'Percorso',
genre: 'Genere',
compilation: 'Compilation',
duration: 'Durata',
year: 'Anno',
playCount: 'Riproduzioni',
trackNumber: '#',
size: 'Dimensioni',
updatedAt: 'Ultimo aggiornamento'
},
bulk: {
addToQueue: 'Aggiungi alla coda'
}
},
album: {
name: 'Album |||| Album',
fields: {
name: 'Nome',
artist: 'Artista',
songCount: 'Tracce',
genre: 'Genere',
playCount: 'Riproduzioni',
compilation: 'Compilation',
duration: 'Durata',
year: 'Anno'
},
actions: {
playAll: 'Riproduci',
playNext: 'Riproduci come successivo',
addToQueue: 'Aggiungi alla coda',
shuffle: 'Riprodici casualmente'
}
},
artist: {
name: 'Artista |||| Artisti',
fields: {
name: 'Nome',
albumCount: 'Album'
}
},
user: {
name: 'Utente |||| Utenti',
fields: {
userName: 'Utente',
isAdmin: 'Amministratore',
lastLoginAt: 'Ultimo accesso',
updatedAt: 'Ultima modifica',
name: 'Nome'
}
},
player: {
name: 'Client |||| Client',
fields: {
name: 'Nome',
transcodingId: 'Transcodifica',
maxBitRate: 'Bitrate massimo',
client: 'Applicazione',
userName: 'Utente',
lastSeen: 'Ultimo acesso'
}
},
transcoding: {
name: 'Transcodifica |||| Transcodifiche',
fields: {
name: 'Nome',
targetFormat: 'Formato',
defaultBitRate: 'Bitrate predefinito',
command: 'Comando'
}
}
},
ra: {
auth: {
welcome1: 'Grazie per aver installato Navidrome!',
welcome2: 'Per iniziare, crea un amministratore',
confirmPassword: 'Conferma la password',
buttonCreateAdmin: 'Crea amministratore'
},
validation: {
invalidChars: 'Per favore usa solo lettere e numeri',
passwordDoesNotMatch: 'Le password non coincidono'
}
},
menu: {
library: 'Libreria',
settings: 'Impostazioni',
version: 'Versione %{version}',
personal: {
name: 'Personale',
options: {
theme: 'Tema',
language: 'Lingua'
}
}
},
player: {
playListsText: 'Coda',
openText: 'Apri',
closeText: 'Chiudi',
clickToPlayText: 'Clicca per riprodurre',
clickToPauseText: 'Clicca per mettere in pausa',
nextTrackText: 'Traccia successiva',
previousTrackText: 'Traccia precedente',
volumeText: 'Volume',
toggleMiniModeText: 'Minimizza',
removeAudioListsText: 'Cancella coda',
clickToDeleteText: `Clicca per rimuovere %{name}`,
playModeText: {
order: 'In ordine',
orderLoop: 'Ripeti',
singleLoop: 'Ripeti una volta',
shufflePlay: 'Casuale'
}
}
})

0 comments on commit d117d57

Please sign in to comment.