Skip to content

Commit

Permalink
feat: french translation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Oct 12, 2020
1 parent 73475d5 commit ccb0eea
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/endpoint-media/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const MediaEndpoint = class {

indiekitConfig.addLocale('de', locales.de);
indiekitConfig.addLocale('en', locales.en);
indiekitConfig.addLocale('fr', locales.fr);

if (application.hasDatabase) {
indiekitConfig.addNavigation({
Expand Down
10 changes: 10 additions & 0 deletions packages/endpoint-media/locales/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const fr = {
media: {
title: 'Dossiers',
download: 'Télécharger un fichier',
properties: 'Propriétés',
files: {
title: 'Les fichiers chargés'
}
}
};
3 changes: 2 additions & 1 deletion packages/endpoint-media/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {de} from './de.js';
import {en} from './en.js';
import {fr} from './fr.js';

export const locales = {de, en};
export const locales = {de, en, fr};
1 change: 1 addition & 0 deletions packages/endpoint-micropub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const MicropubEndpoint = class {

indiekitConfig.addLocale('de', locales.de);
indiekitConfig.addLocale('en', locales.en);
indiekitConfig.addLocale('fr', locales.fr);

if (application.hasDatabase) {
indiekitConfig.addNavigation({
Expand Down
10 changes: 10 additions & 0 deletions packages/endpoint-micropub/locales/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const fr = {
micropub: {
title: 'Articles',
microformats: 'Microformats pour cet article',
properties: 'Propriétés',
posts: {
title: 'Article publié'
}
}
};
3 changes: 2 additions & 1 deletion packages/endpoint-micropub/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {de} from './de.js';
import {en} from './en.js';
import {fr} from './fr.js';

export const locales = {de, en};
export const locales = {de, en, fr};
1 change: 1 addition & 0 deletions packages/endpoint-share/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const ShareEndpoint = class {

indiekitConfig.addLocale('de', locales.de);
indiekitConfig.addLocale('en', locales.en);
indiekitConfig.addLocale('fr', locales.fr);

indiekitConfig.addNavigation({
href: this.options.mountpath,
Expand Down
13 changes: 13 additions & 0 deletions packages/endpoint-share/locales/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const fr = {
share: {
title: 'Transmettre',
'bookmark-of': 'URL',
name: 'Titre',
content: 'Contenu',
submit: 'Publier',
error: {
'bookmark-of': 'Tapez une addresse Web comme https://example.org',
name: 'Tapez un titre'
}
}
};
3 changes: 2 additions & 1 deletion packages/endpoint-share/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {de} from './de.js';
import {en} from './en.js';
import {fr} from './fr.js';

export const locales = {de, en};
export const locales = {de, en, fr};
51 changes: 51 additions & 0 deletions packages/indiekit/locales/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
export const fr = {
error: 'Erreur',
errorSummaryTitle: 'Il y a un problème',
noValue: 'Pas encore défini',
optionalValue: '(facultatif)',
guidance: {
discovery: 'Alors que {{app}} peut être repéré par les clients Micropub et demander l’autorisation de publier sur votre site, ajoutez les valeurs suivantes à la partie `<head>` de votre site web:'
},
session: {
login: {
title: 'Se connecter',
description: 'Connectez-vous avec IndieAuth pour vérifier que %s vous appartient',
me: 'Adresse web',
submit: 'Connectez-vous avec IndieAuth',
error: {
validateState: 'code manquant ou décalage état'
}
},
logout: {
title: 'Déconnexion'
}
},
status: {
title: 'Statut du serveur',
application: {
summaryTitle: 'Paramètres de l’application',
name: 'Nom de l’application',
locale: 'Langue',
localeNotAvailable: '{{ app }} n’a pas encore été traduit en {{ locale }}',
themeColor: 'Couleur de thème',
themeColorScheme: 'Schéma de couleurs du thème',
themeColorSchemeValue: {
automatic: 'Automatique',
light: 'Lumière',
dark: 'Sombre'
},
endpoints: 'Endpoints'
},
publication: {
summaryTitle: 'Paramètres de Puplication',
me: 'Adresse web',
locale: 'Langue',
timeZone: 'Fuseau horaire',
store: 'Magasin de contenu',
preset: 'Préréglage',
postTypes: 'Types de article',
syndicationTargets: 'Cibles de syndication',
mediaEndpoint: 'Media endpoint'
}
}
};
3 changes: 2 additions & 1 deletion packages/indiekit/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {de} from './de.js';
import {en} from './en.js';
import {fr} from './fr.js';

export const locales = {de, en};
export const locales = {de, en, fr};

0 comments on commit ccb0eea

Please sign in to comment.