From 3138875e9ba9713b584149799240db571bf4f068 Mon Sep 17 00:00:00 2001 From: Eric Darchis Date: Sun, 17 Oct 2021 16:39:12 +0200 Subject: [PATCH 1/4] Niger French deployment --- .github/workflows/npmpublish.yml | 14 ------ README.md | 5 +-- package.json | 8 ++-- src/translations/fr.json | 76 +++++++++++++++++++++++++++++--- 4 files changed, 76 insertions(+), 27 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 2336d08..1f0242e 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -34,17 +34,3 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - publish-gpr: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://npm.pkg.github.com/ - - run: yarn install - - run: yarn build - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/README.md b/README.md index 7fdaf26..24f52c4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ -# openIMIS French translations of reference modules -This repository holds the files of the openIMIS French translations of reference modules. +# openIMIS French Niger translations of reference modules +This repository holds the files of the openIMIS French Niger translations of reference modules. It is dedicated to be deployed as a module of [openimis-fe_js](https://github.com/openimis/openimis-fe_js). [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) -[![Total alerts](https://img.shields.io/lgtm/alerts/g/openimis/openimis-fe-language_fr_js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/openimis/openimis-fe-language_fr_js/alerts/) diff --git a/package.json b/package.json index 3adf12c..42d442d 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "@openimis/fe-language_fr", - "version": "1.2.1", + "name": "openimis-fe-language_fr_ne", + "version": "1.3.0", "license": "AGPL-3.0-only", - "description": "openIMIS French translations of reference modules", - "repository": "openimis/openimis-fe-language_fr_js", + "description": "openIMIS French translations of reference modules in Niger", + "repository": "BLQS/openimis-fe-language_fr_ne_js", "main": "dist/index.js", "module": "dist/index.es.js", "engines": { diff --git a/src/translations/fr.json b/src/translations/fr.json index 4c4740f..660c5d0 100644 --- a/src/translations/fr.json +++ b/src/translations/fr.json @@ -1,7 +1,7 @@ { "appName": "openIMIS", "close": "Fermer", - "currency": "$", + "currency": "F", "rowsPerPage": "Lignes par page", "ofPages": "de", "selectAll": "Sélectionner tout", @@ -629,10 +629,74 @@ "insuree.ProfessionPicker.label": "Profession", "insuree.Profession.null": "Tout", "insuree.Profession.none": "Aucun", - "insuree.Profession.1": "Femme au foyer", - "insuree.Profession.2": "Employé", - "insuree.Profession.3": "Travailleur indépendant", - "insuree.Profession.4": "Autre", + "insuree.Profession.1": "Agriculteur", + "insuree.Profession.2": "Transporteur", + "insuree.Profession.3": "Eleveur", + "insuree.Profession.4": "Artisan", + "insuree.Profession.5": "Chef d'entreprise", + "insuree.Profession.6": "Profession libérale", + "insuree.Profession.7": "Autres fonctionnaires", + "insuree.Profession.8": "Professionnel de l'information", + "insuree.Profession.9": "Professionnel des arts et des spectacles", + "insuree.Profession.10": "Cadre d'entreprise", + "insuree.Profession.11": "Agent de santé", + "insuree.Profession.12": "Clergé, religieux", + "insuree.Profession.13": "Techniciens", + "insuree.Profession.14": "Forces de l'ordre", + "insuree.Profession.15": "Ouvriers", + "insuree.Profession.16": "Chauffeur", + "insuree.Profession.17": "Sans emploi", + "insuree.Profession.18": "Elèves, étudiants", + "insuree.Profession.19": "Retraité", + "insuree.Profession.20": "Jardiniers", + "insuree.Profession.21": "Maçons", + "insuree.Profession.22": "Menuisiers", + "insuree.Profession.23": "Plombiers", + "insuree.Profession.24": "Peintres", + "insuree.Profession.25": "Electriciens", + "insuree.Profession.26": "Boucher", + "insuree.Profession.27": "Coiffeur", + "insuree.Profession.28": "Nettoyeur", + "insuree.Profession.29": "Fleuristes", + "insuree.Profession.30": "Pombiste", + "insuree.Profession.31": "Employé de petit restaurant, café-restaurant", + "insuree.Profession.32": "Employé d'hôtel", + "insuree.Profession.33": "Forgeron", + "insuree.Profession.34": "Piroguiers", + "insuree.Profession.35": "Banquiers", + "insuree.Profession.36": "Enseignants", + "insuree.Profession.37": "Mécanicien", + "insuree.Profession.38": "Réparateur d'apparels", + "insuree.Profession.39": "Agents Bureautique", + "insuree.Profession.40": "Cambiste", + "insuree.Profession.41": "Travailleur de Bois", + "insuree.Profession.42": "Vulganisateur", + "insuree.Profession.43": "Domestique et assimilés", + "insuree.Profession.44": "Exploitants de Moulins", + "insuree.Profession.45": "Conducteur d'engins", + "insuree.Profession.46": "Ouvrier agricole", + "insuree.Profession.47": "Pêcheur", + "insuree.Profession.48": "Couturier", + "insuree.Profession.49": "Personnel des ONG et Association", + "insuree.Profession.50": "Transformation agro-alimentaire", + "insuree.Profession.51": "Relais", + "insuree.Profession.52": "Pharmacien", + "insuree.Profession.53": "Matrones", + "insuree.Profession.54": "Conseillers Municipaux", + "insuree.Profession.55": "Chef de Village/quartier/Tribu", + "insuree.Profession.56": "COGES", + "insuree.Profession.57": "Transitaire", + "insuree.Profession.58": "Griots", + "insuree.Profession.59": "Artistes", + "insuree.Profession.60": "Exploitants taxi motos", + "insuree.Profession.61": "Exploitants taxi de brousse", + "insuree.Profession.62": "Animateur radio", + "insuree.Profession.63": "Photographe", + "insuree.Profession.64": "Boutiquiers", + "insuree.Profession.65": "Boulangiers", + "insuree.Profession.66": "tradipraticiens", + "insuree.Profession.67": "Marabout", + "insuree.Profession.68": "Commerçant", "insuree.RelationPicker.label": "Relation", "insuree.Relation.null": "Tout", "insuree.Relation.none": "Aucun", @@ -944,4 +1008,4 @@ "payment.receivedAmount_Lte": "Montant reçu jusqu'à", "payment.showHistory": "Afficher les valeurs historiques", "payment.UpdatePayment.mutationLabel": "Modifier le paiement" -} \ No newline at end of file +} From 57fb8142492e2a46dece4d49b7cfabf6e4ccc467 Mon Sep 17 00:00:00 2001 From: Eric Darchis Date: Tue, 2 Nov 2021 17:42:07 +0100 Subject: [PATCH 2/4] Need an org name for config to work properly --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 42d442d..6de5918 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "openimis-fe-language_fr_ne", + "name": "@blsqne/fe-language_fr_ne", "version": "1.3.0", "license": "AGPL-3.0-only", "description": "openIMIS French translations of reference modules in Niger", - "repository": "BLQS/openimis-fe-language_fr_ne_js", + "repository": "BLSQ/openimis-fe-language_fr_ne_js", "main": "dist/index.js", "module": "dist/index.es.js", "engines": { From 56e22f1bc4713eae460e0532d892bf0e7b326127 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix Date: Wed, 23 Mar 2022 11:21:15 +0100 Subject: [PATCH 3/4] node 16 --- .github/workflows/npmpublish.yml | 35 ++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 1f0242e..48cd4fb 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -5,32 +5,59 @@ name: Node.js Package on: release: - types: [created] + types: [published] jobs: build: runs-on: ubuntu-latest steps: + - uses: olegtarasov/get-tag@v2.1 + id: tagName - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 16 + - name: update the version with TAG + run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json - run: yarn install - - run: yarn build + - run: yarn build + publish-npm: needs: build runs-on: ubuntu-latest steps: + - uses: olegtarasov/get-tag@v2.1 + id: tagName - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 16 registry-url: https://registry.npmjs.org/ scope: openimis + - name: update the version with TAG + run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json - run: yarn install - run: yarn build - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: olegtarasov/get-tag@v2.1 + id: tagName + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16 + registry-url: https://npm.pkg.github.com/ + - name: update the version with TAG + run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json + - run: yarn install + - run: yarn build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From 8f14ff72d5f085ec6716ae3ebc66c7ea758b2a02 Mon Sep 17 00:00:00 2001 From: Dragos DOBRE Date: Mon, 24 Oct 2022 12:24:55 +0200 Subject: [PATCH 4/4] Update index.js --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 1f7e0ab..1d3ebfb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,9 +1,9 @@ import messages_fr from "./translations/fr.json"; const DEFAULT_CONFIG = { - "translations": [{ key: 'fr', messages: messages_fr }], + "translations": [{ key: 'fr', messages: flatten(messages_fr) }], } export const LanguageFrModule = (cfg) => { return { ...DEFAULT_CONFIG, ...cfg }; -} \ No newline at end of file +}