Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit 119d918

Browse files
authored
Merge branch 'master' into feat/change-language-on-the-fly
2 parents c3f4352 + b173684 commit 119d918

File tree

4 files changed

+153
-4
lines changed

4 files changed

+153
-4
lines changed

i18n/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import translationEN from './translations/en-US.json';
55
import translationPT from './translations/pt-BR.json';
66
import translationES from './translations/es-ES.json';
77
import translationDE from './translations/de-DE.json';
8+
import translationFR from './translations/fr-FR.json';
89
import translationCN from './translations/zh-CN.json';
910

1011
i18n
@@ -16,7 +17,7 @@ i18n
1617
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
1718
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
1819
fallbackLng: 'en-US',
19-
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'zh-CN'],
20+
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN'],
2021
load: 'currentOnly',
2122
resources: {
2223
'en-US': {
@@ -31,6 +32,9 @@ i18n
3132
'de-DE': {
3233
translation: translationDE,
3334
},
35+
'fr-FR': {
36+
translation: translationFR,
37+
},
3438
'zh-CN': {
3539
translation: translationCN,
3640
},

i18n/translations/en-US.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dialog": {
1010
"registry-info": {
11-
"title": "Register Info"
11+
"title": "Registry Info"
1212
}
1313
},
1414
"header": {
@@ -132,8 +132,8 @@
132132
"page-not-found": "404 - Page not found",
133133
"sorry-we-could-not-find-it": "Sorry, we couldn't find it..."
134134
},
135-
"app-context-not-correct-used": "The app context was not correct used",
136-
"theme-context-not-correct-used": "The theme context was not correct used",
135+
"app-context-not-correct-used": "The app context was not used correctly",
136+
"theme-context-not-correct-used": "The theme context was not used correctly",
137137
"package-meta-is-required-at-detail-context": "packageMeta is required at DetailContext"
138138
},
139139
"lng": {

i18n/translations/fr-FR.json

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"copy-to-clipboard": "Copier dans le presse-papier",
3+
"author-anonymous": "Anonyme",
4+
"action-bar-action": {
5+
"visit-home-page": "Visiter la page d'accueil",
6+
"open-an-issue": "Ouvrir un ticket",
7+
"download-tarball": "Télécharger l'archive"
8+
},
9+
"dialog": {
10+
"registry-info": {
11+
"title": "Informations du Registry"
12+
}
13+
},
14+
"header": {
15+
"documentation": "Documentation",
16+
"registry-info": "Informations du Registry",
17+
"greetings": "Bonjour "
18+
},
19+
"search": {
20+
"packages": "Rechercher des paquets"
21+
},
22+
"auto-complete": {
23+
"loading": "En cours de chargement...",
24+
"no-results-found": "Aucun resultat trouvé"
25+
},
26+
"tab": {
27+
"uplinks": "Uplinks",
28+
"versions": "Versions",
29+
"dependencies": "Dépendances",
30+
"readme": "Readme"
31+
},
32+
"uplinks": {
33+
"title": "Uplinks",
34+
"no-items": "{{name}} n'a pas de uplink."
35+
},
36+
"versions": {
37+
"current-tags": "Tags courants",
38+
"version-history": "Historique de version",
39+
"not-available": "Non disponible"
40+
},
41+
"package": {
42+
"published-on": "Publié le {{time}} •",
43+
"version": "v{{version}}",
44+
"visit-home-page": "Visiter la page d'accueil",
45+
"homepage": "Page d'accueil",
46+
"open-an-issue": "Ouvrir un ticket",
47+
"bugs": "Bugs",
48+
"download": "Télécharger {{what}}",
49+
"the-tar-file": "le fichier tar",
50+
"tarball": "Archive"
51+
},
52+
"dependencies": {
53+
"has-no-dependencies": "{{package}} n'a aucune dépendance.",
54+
"dependency-block": "{{package}}@{{version}}"
55+
},
56+
"form": {
57+
"username": "Nom d'utilisateur",
58+
"password": "Mot de passe"
59+
},
60+
"form-placeholder": {
61+
"username": "Votre nom d'utilisateur",
62+
"password": "Votre mot de passe"
63+
},
64+
"form-validation": {
65+
"required-field": "Ce champ est obligatoire",
66+
"required-min-length": "Ce champ doit faire au moins {{length}} caractères",
67+
"unable-to-sign-in": "Connexion impossible",
68+
"username-or-password-cant-be-empty": "Le nom d'utilisateur ou mot de passe ne peut pas être vide!"
69+
},
70+
"help": {
71+
"title": "Aucun paquet publié pour l'instant.",
72+
"sub-title": "Pour publier votre premier paquet:",
73+
"first-step": "1. Se connecter",
74+
"first-step-command-line": "npm adduser --registry {{registryUrl}}",
75+
"second-step": "2. Publier",
76+
"second-step-command-line": "npm publish --registry {{registryUrl}}",
77+
"third-step": "3. Recharger cette page."
78+
},
79+
"sidebar": {
80+
"detail": {
81+
"latest-version": "Dernière v{{version}}",
82+
"version": "v{{version}}"
83+
},
84+
"installation": {
85+
"title": "Installation",
86+
"install-using-yarn": "Installer avec yarn",
87+
"install-using-yarn-command": "yarn add {{packageName}}",
88+
"install-using-npm": "Installer avec npm",
89+
"install-using-npm-command": "npm install {{packageName}}",
90+
"install-using-pnpm": "Installer avec pnpm",
91+
"install-using-pnpm-command": "pnpm install {{packageName}}"
92+
},
93+
"repository": {
94+
"title": "Dépôt"
95+
},
96+
"author": {
97+
"title": "Auteur"
98+
},
99+
"distribution": {
100+
"title": "Dernière distribution",
101+
"license": "Licence",
102+
"size": "Taille",
103+
"file-count": "nombre de fichiers"
104+
},
105+
"maintainers": {
106+
"title": "Mainteneurs"
107+
},
108+
"contributors": {
109+
"title": "Contributeurs"
110+
},
111+
"engines": {
112+
"npm-version": "Version NPM",
113+
"node-js": "NODE JS"
114+
}
115+
},
116+
"footer": {
117+
"powered-by": "Propulsé par",
118+
"made-with-love-on": "Fait avec <0>♥</0> sur"
119+
},
120+
"button": {
121+
"close": "Fermer",
122+
"cancel": "Annuler",
123+
"login": "Se connecter",
124+
"logout": "Se déconnecter",
125+
"go-to-the-home-page": "Aller à la page d'accueil",
126+
"learn-more": "En savoir plus",
127+
"fund-this-package": "<0>Financer</0> ce paquet"
128+
},
129+
"error": {
130+
"unspecific": "Quelque chose a mal tourné.",
131+
"404": {
132+
"page-not-found": "404 - Page non trouvée",
133+
"sorry-we-could-not-find-it": "Desolé, nous n'avons rien retrouvé..."
134+
},
135+
"app-context-not-correct-used": "Le contexte de l'application n'a pas été utilisé correctement",
136+
"theme-context-not-correct-used": "Le contexte du thème n'a pas été utilisé correctement",
137+
"package-meta-is-required-at-detail-context": "packageMeta est obligatoire à DetailContext"
138+
}
139+
}

src/App/load-dayjs-locale.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ function loadDayJSLocale() {
4343
dayjs.locale('es');
4444
}
4545
break;
46+
case 'fr-fr':
47+
{
48+
require('dayjs/locale/fr');
49+
dayjs.locale('fr');
50+
}
51+
break;
4652
case 'zh-cn':
4753
{
4854
require('dayjs/locale/zh-cn');

0 commit comments

Comments
 (0)