From 6d2be77b1b5a86918a7607016f6347e8b951283c Mon Sep 17 00:00:00 2001 From: Jean-francois lefebvre Date: Sat, 19 Jun 2021 12:12:10 +0200 Subject: [PATCH] -- french translations --- public/locales/fr/bank-account-form.json | 9 ++++ public/locales/fr/bank-accounts-list.json | 6 +++ public/locales/fr/client-fields.json | 10 ++++ public/locales/fr/client-form.json | 36 ++++++++++++++ public/locales/fr/client-selector.json | 6 +++ public/locales/fr/customizations-modal.json | 5 ++ public/locales/fr/empty-state.json | 3 ++ public/locales/fr/import-modal.json | 6 +++ public/locales/fr/invoice-bank-details.json | 5 ++ public/locales/fr/invoice-client-details.json | 8 +++ .../locales/fr/invoice-company-details.json | 9 ++++ .../locales/fr/invoice-contact-details.json | 5 ++ public/locales/fr/invoice-controls.json | 16 ++++++ public/locales/fr/invoice-form.json | 3 ++ public/locales/fr/invoice-header.json | 10 ++++ public/locales/fr/invoice-row.json | 7 +++ public/locales/fr/invoice-rows-header.json | 7 +++ public/locales/fr/invoice-totals.json | 5 ++ public/locales/fr/invoices-list.json | 7 +++ public/locales/fr/invoices.json | 6 +++ public/locales/fr/statuses.json | 9 ++++ public/locales/fr/team-fields.json | 10 ++++ public/locales/fr/team-form.json | 36 ++++++++++++++ public/locales/fr/team-logo.json | 7 +++ public/locales/fr/team-taxes.json | 10 ++++ public/locales/fr/the-footer.json | 9 ++++ src/config/i18n.config.js | 30 ++++++------ src/store/language.js | 49 ++++++++++--------- 28 files changed, 290 insertions(+), 39 deletions(-) create mode 100644 public/locales/fr/bank-account-form.json create mode 100644 public/locales/fr/bank-accounts-list.json create mode 100644 public/locales/fr/client-fields.json create mode 100644 public/locales/fr/client-form.json create mode 100644 public/locales/fr/client-selector.json create mode 100644 public/locales/fr/customizations-modal.json create mode 100644 public/locales/fr/empty-state.json create mode 100644 public/locales/fr/import-modal.json create mode 100644 public/locales/fr/invoice-bank-details.json create mode 100644 public/locales/fr/invoice-client-details.json create mode 100644 public/locales/fr/invoice-company-details.json create mode 100644 public/locales/fr/invoice-contact-details.json create mode 100644 public/locales/fr/invoice-controls.json create mode 100644 public/locales/fr/invoice-form.json create mode 100644 public/locales/fr/invoice-header.json create mode 100644 public/locales/fr/invoice-row.json create mode 100644 public/locales/fr/invoice-rows-header.json create mode 100644 public/locales/fr/invoice-totals.json create mode 100644 public/locales/fr/invoices-list.json create mode 100644 public/locales/fr/invoices.json create mode 100644 public/locales/fr/statuses.json create mode 100644 public/locales/fr/team-fields.json create mode 100644 public/locales/fr/team-form.json create mode 100644 public/locales/fr/team-logo.json create mode 100644 public/locales/fr/team-taxes.json create mode 100644 public/locales/fr/the-footer.json diff --git a/public/locales/fr/bank-account-form.json b/public/locales/fr/bank-account-form.json new file mode 100644 index 0000000..d32a604 --- /dev/null +++ b/public/locales/fr/bank-account-form.json @@ -0,0 +1,9 @@ +{ + "title": "Compte bancaire", + "bank_name": "Nom de la banque", + "account_no": "Détails du compte bancaire", + "loading": "Chargement", + "done": "Terminé", + "create": "Créer", + "notification_updated": "Mis à jour" +} \ No newline at end of file diff --git a/public/locales/fr/bank-accounts-list.json b/public/locales/fr/bank-accounts-list.json new file mode 100644 index 0000000..619ef01 --- /dev/null +++ b/public/locales/fr/bank-accounts-list.json @@ -0,0 +1,6 @@ +{ + "loading": "Chargement", + "bank": "Banque", + "bank_account_details": "Détails du compte bancaire", + "add_bank_account": "Ajouter un compte bancaire" +} \ No newline at end of file diff --git a/public/locales/fr/client-fields.json b/public/locales/fr/client-fields.json new file mode 100644 index 0000000..75a00ef --- /dev/null +++ b/public/locales/fr/client-fields.json @@ -0,0 +1,10 @@ +{ + "label": "Libellé", + "field": "Champs", + "delete_modal": { + "title": "Supprimer champ", + "ok_title": "Supprimer", + "cancel_title": "Annuler" + }, + "notification_deleted": "Supprimé" +} \ No newline at end of file diff --git a/public/locales/fr/client-form.json b/public/locales/fr/client-form.json new file mode 100644 index 0000000..f95f227 --- /dev/null +++ b/public/locales/fr/client-form.json @@ -0,0 +1,36 @@ +{ + "title": "Client", + "delete": "Supprimer", + "done": "Terminé", + "create": "Créer", + "loading": "Chargement", + "tabs": { + "general": "Général", + "invoicing": "Facturation", + "address": "Adresse" + }, + "general": { + "company_name": "Nom de la société", + "invoice_email": "E-mail" + }, + "invoicing": { + "currency": "Devise", + "rate": "Taux horaire", + "has_tax": "Taxes à appliquer", + "bank_account": "Compte bancaire" + }, + "address": { + "company_address": "Addresse de la société", + "company_postal_code": "Code postal", + "company_city": "Ville", + "company_county": "Province/Région", + "company_country": "Pays" + }, + "delete_modal": { + "title": "Supprimer client", + "ok_title": "Supprimer", + "cancel_title": "Annuler" + }, + "notification_deleted": "Supprimer", + "notification_updated": "Mis à jour" +} \ No newline at end of file diff --git a/public/locales/fr/client-selector.json b/public/locales/fr/client-selector.json new file mode 100644 index 0000000..1774cd4 --- /dev/null +++ b/public/locales/fr/client-selector.json @@ -0,0 +1,6 @@ +{ + "client": "Client", + "create": "Créer", + "new": "nouveau", + "suggest_placeholder": "Rechercher client" +} \ No newline at end of file diff --git a/public/locales/fr/customizations-modal.json b/public/locales/fr/customizations-modal.json new file mode 100644 index 0000000..9198d4a --- /dev/null +++ b/public/locales/fr/customizations-modal.json @@ -0,0 +1,5 @@ +{ + "title": "Customiser vos factures", + "textarea_label": "Ajouter votre CSS customisée", + "updated": "Mis à jour" +} \ No newline at end of file diff --git a/public/locales/fr/empty-state.json b/public/locales/fr/empty-state.json new file mode 100644 index 0000000..e27d4b7 --- /dev/null +++ b/public/locales/fr/empty-state.json @@ -0,0 +1,3 @@ +{ + "content": "Rien à voir ici" +} \ No newline at end of file diff --git a/public/locales/fr/import-modal.json b/public/locales/fr/import-modal.json new file mode 100644 index 0000000..2271e1f --- /dev/null +++ b/public/locales/fr/import-modal.json @@ -0,0 +1,6 @@ +{ + "title": "Importer vos données", + "warning": "Vos données actuelles seront supprimées et écrasées avec les données importées!", + "button_text": "Choisissez votre fichier à importer", + "import-error": "Format JSON invalide" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-bank-details.json b/public/locales/fr/invoice-bank-details.json new file mode 100644 index 0000000..3d4383e --- /dev/null +++ b/public/locales/fr/invoice-bank-details.json @@ -0,0 +1,5 @@ +{ + "bank_name": "Ajouter une banque", + "bank_account_no": "Ajoutez les détails d'une banque", + "bank_account_modal_title": "Choisissez un compte bancaire" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-client-details.json b/public/locales/fr/invoice-client-details.json new file mode 100644 index 0000000..84ebb41 --- /dev/null +++ b/public/locales/fr/invoice-client-details.json @@ -0,0 +1,8 @@ +{ + "client_address": "Adresse", + "client_postal_code": "Code postal", + "client_city": "Ville", + "client_county": "Province/Région", + "client_country": "Pays", + "client_email": "E-mail du client" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-company-details.json b/public/locales/fr/invoice-company-details.json new file mode 100644 index 0000000..55dc4ec --- /dev/null +++ b/public/locales/fr/invoice-company-details.json @@ -0,0 +1,9 @@ +{ + "your_company_name": "Votre nom de société", + "address": "Adresse", + "postal_code": "Code postal", + "city": "Ville", + "county": "Province/Région", + "country": "Country", + "your_email": "Your email" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-contact-details.json b/public/locales/fr/invoice-contact-details.json new file mode 100644 index 0000000..db31de5 --- /dev/null +++ b/public/locales/fr/invoice-contact-details.json @@ -0,0 +1,5 @@ +{ + "add_website": "Ajouter un site web", + "add_email": "Ajouter un e-mail", + "add_phone": "Ajouter un téléphone" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-controls.json b/public/locales/fr/invoice-controls.json new file mode 100644 index 0000000..fea1cd9 --- /dev/null +++ b/public/locales/fr/invoice-controls.json @@ -0,0 +1,16 @@ +{ + "back": "Retour", + "book": "Book", + "design_and_layout": "Apparence", + "compact": "Compacte", + "comfortable": "Comfortable", + "customize": "Customise", + "download_pdf": "Télécharger PDF", + "delete": "Supprimer", + "delete_modal": { + "title": "Supprimer facture", + "ok_title": "Supprimer", + "cancel_title": "Annuler" + }, + "notification_deleted": "Supprimé" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-form.json b/public/locales/fr/invoice-form.json new file mode 100644 index 0000000..8fa51c0 --- /dev/null +++ b/public/locales/fr/invoice-form.json @@ -0,0 +1,3 @@ +{ + "insert_note": "Ajouter une note" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-header.json b/public/locales/fr/invoice-header.json new file mode 100644 index 0000000..67cb3a6 --- /dev/null +++ b/public/locales/fr/invoice-header.json @@ -0,0 +1,10 @@ +{ + "invoice_title": "Facture ", + "invoice_number": "No.", + "issued_at": "Facturé le: ", + "due_at": "Exigible le:", + "late_fee": "Intérets de retard:", + "add_late_fee": "Ajouter intérets de retard", + "modal_issued_at_title": "Facturé le", + "modal_due_at_title": "Exigible le" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-row.json b/public/locales/fr/invoice-row.json new file mode 100644 index 0000000..b970119 --- /dev/null +++ b/public/locales/fr/invoice-row.json @@ -0,0 +1,7 @@ +{ + "enter_item": "Entrer objet", + "enter_quantity": "Entrer quantité", + "enter_unit": "Entrer unité", + "enter_price": "Entrer prix", + "enter_tax": "Entrer taxe" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-rows-header.json b/public/locales/fr/invoice-rows-header.json new file mode 100644 index 0000000..04b58c2 --- /dev/null +++ b/public/locales/fr/invoice-rows-header.json @@ -0,0 +1,7 @@ +{ + "item": "Objet", + "quantity": "Quantité", + "unit": "Unité", + "price": "Prix", + "sum": "Total" +} \ No newline at end of file diff --git a/public/locales/fr/invoice-totals.json b/public/locales/fr/invoice-totals.json new file mode 100644 index 0000000..fb8a402 --- /dev/null +++ b/public/locales/fr/invoice-totals.json @@ -0,0 +1,5 @@ +{ + "subtotal": "Sous-total", + "total": "Total", + "add_currency": "Ajouter devise" +} \ No newline at end of file diff --git a/public/locales/fr/invoices-list.json b/public/locales/fr/invoices-list.json new file mode 100644 index 0000000..1c0f192 --- /dev/null +++ b/public/locales/fr/invoices-list.json @@ -0,0 +1,7 @@ +{ + "invoice_number": "No.", + "client": "Client", + "issued_at": "Facturé le", + "total": "Total", + "status": "Etat" +} \ No newline at end of file diff --git a/public/locales/fr/invoices.json b/public/locales/fr/invoices.json new file mode 100644 index 0000000..c09a50d --- /dev/null +++ b/public/locales/fr/invoices.json @@ -0,0 +1,6 @@ +{ + "title": "Factures", + "new_invoice": "Nouvelle facture", + "export": "Exporter", + "import": "Importer" +} \ No newline at end of file diff --git a/public/locales/fr/statuses.json b/public/locales/fr/statuses.json new file mode 100644 index 0000000..af7f690 --- /dev/null +++ b/public/locales/fr/statuses.json @@ -0,0 +1,9 @@ +{ + "statuses": { + "draft": "brouillon", + "booked": "signé", + "sent": "envoyé", + "paid": "payé", + "cancelled": "annulé" + } +} \ No newline at end of file diff --git a/public/locales/fr/team-fields.json b/public/locales/fr/team-fields.json new file mode 100644 index 0000000..c7083d9 --- /dev/null +++ b/public/locales/fr/team-fields.json @@ -0,0 +1,10 @@ +{ + "label": "Libellé", + "field": "Champ", + "delete_modal": { + "title": "Supprimer un champ", + "ok_title": "Supprimer", + "cancel_title": "Annuler" + }, + "notification_delete": "Supprimé" +} \ No newline at end of file diff --git a/public/locales/fr/team-form.json b/public/locales/fr/team-form.json new file mode 100644 index 0000000..7f5f868 --- /dev/null +++ b/public/locales/fr/team-form.json @@ -0,0 +1,36 @@ +{ + "title": "Votre société", + "done": "Terminé", + "updated": "Mis à jour", + "loading": "Chargement", + "tabs": { + "general": "Général", + "invoicing": "Facturation", + "address": "Adresse", + "taxes": "Taxes" + }, + "general": { + "company_name": "Nom de la société", + "contact_email": "E-mail", + "contact_phone": "Téléphone", + "website": "Site web" + }, + "invoicing": { + "invoice_late_fee": "Intérêt de retard (%)", + "invoice_due_days": "Conditions de paiements, jours", + "currency": "Devise par défaut" + }, + "address": { + "company_address": "Address de la société", + "company_postal_code": "Code postal", + "company_city": "Ville", + "company_county": "Province/Région", + "company_country": "Pays" + }, + "tax_modal": { + "title": "Ecraser les taxes pour les lignes de la facture courante?", + "ok_title": "Ecraser", + "cancel_title": "Annuler", + "taxes_updated": "Taxes mises à jour" + } +} \ No newline at end of file diff --git a/public/locales/fr/team-logo.json b/public/locales/fr/team-logo.json new file mode 100644 index 0000000..8253f14 --- /dev/null +++ b/public/locales/fr/team-logo.json @@ -0,0 +1,7 @@ +{ + "modal_title": "Choisissez un logo", + "button_text": "Choisissez dans vos fichiers", + "logo_url": "Insérez un image à partir d'une url", + "logo_url_err": "Le logo doit avoir une taille < 512kb.", + "or": "ou" +} \ No newline at end of file diff --git a/public/locales/fr/team-taxes.json b/public/locales/fr/team-taxes.json new file mode 100644 index 0000000..e29580d --- /dev/null +++ b/public/locales/fr/team-taxes.json @@ -0,0 +1,10 @@ +{ + "label": "Libellé", + "tax": "Taxe", + "delete_modal": { + "title": "Supprimer la taxe", + "ok_title": "Supprimer", + "cancel_title": "Annuler" + }, + "notification_deleted": "Supprimé" +} \ No newline at end of file diff --git a/public/locales/fr/the-footer.json b/public/locales/fr/the-footer.json new file mode 100644 index 0000000..d636370 --- /dev/null +++ b/public/locales/fr/the-footer.json @@ -0,0 +1,9 @@ +{ + "lights-on": "Mode clair", + "lights-off": "Mode sombre", + "title": "Toutes vos données sont sauvées dans votre naviguateur et sur aucun serveur.\n Cette application est réellement serverless et vous avez seulement accès à vos propres données.", + "what_about_my_data": "Qu'en est-il de mes données? ", + "made_with": "Créé avec", + "by": "par", + "upgrade": "Mise à jour" +} \ No newline at end of file diff --git a/src/config/i18n.config.js b/src/config/i18n.config.js index d299fde..aaceac1 100644 --- a/src/config/i18n.config.js +++ b/src/config/i18n.config.js @@ -8,28 +8,28 @@ import app from '@/main'; Vue.use(VueI18Next); i18next - .use(LanguageDetector) - .use(Backend); + .use(LanguageDetector) + .use(Backend); const initialized = i18next.init({ - fallbackLng: 'en', - whitelist: ['en', 'et', 'fa', 'bn', 'es'], - backend: { - loadPath: `${window.location.origin}/locales/{{lng}}/{{ns}}.json`, - }, - detection: { - order: ['querystring', 'path', 'localStorage', 'navigator'], - lookupQuerystring: 'lang', - caches: ['localStorage'], - checkWhitelist: true, - }, + fallbackLng: 'en', + whitelist: ['en', 'fr', 'et', 'fa', 'bn', 'es'], + backend: { + loadPath: `${window.location.origin}/locales/{{lng}}/{{ns}}.json`, + }, + detection: { + order: ['querystring', 'path', 'localStorage', 'navigator'], + lookupQuerystring: 'lang', + caches: ['localStorage'], + checkWhitelist: true, + }, }); initialized.then(() => app.$store.dispatch('language/initLanguage', i18next.language)); const i18n = new VueI18Next(i18next, { - loadComponentNamespace: true, + loadComponentNamespace: true, }); i18n.initialized = initialized; -export default i18n; +export default i18n; \ No newline at end of file diff --git a/src/store/language.js b/src/store/language.js index 53d448c..c04ac2e 100644 --- a/src/store/language.js +++ b/src/store/language.js @@ -1,30 +1,31 @@ import app from '../main'; export default { - namespaced: true, - state: { - lang: null, - all: [ - { name: 'English', code: 'en' }, - { name: 'Estonian', code: 'et' }, - { name: 'Persian', code: 'fa' }, - { name: 'Spanish', code: 'es' }, - { name: 'Bangla', code: 'bn' }, - ], - }, - mutations: { - lang(state, lang) { - state.lang = lang; + namespaced: true, + state: { + lang: null, + all: [ + { name: 'English', code: 'en' }, + { name: 'French', code: 'fr' }, + { name: 'Estonian', code: 'et' }, + { name: 'Persian', code: 'fa' }, + { name: 'Spanish', code: 'es' }, + { name: 'Bangla', code: 'bn' }, + ], }, - }, - actions: { - changeLanguage({ commit }, lang) { - app.$i18n.i18next.changeLanguage(lang.code); - app.$router.push({ query: { ...app.$route.query, lang: lang.code } }); - commit('lang', lang); + mutations: { + lang(state, lang) { + state.lang = lang; + }, }, - initLanguage({ commit, state }, code) { - commit('lang', state.all.find(lang => lang.code === code)); + actions: { + changeLanguage({ commit }, lang) { + app.$i18n.i18next.changeLanguage(lang.code); + app.$router.push({ query: {...app.$route.query, lang: lang.code } }); + commit('lang', lang); + }, + initLanguage({ commit, state }, code) { + commit('lang', state.all.find(lang => lang.code === code)); + }, }, - }, -}; +}; \ No newline at end of file