Skip to content

Commit

Permalink
fix: add category language translations
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Jul 28, 2023
1 parent 2f724d1 commit 6466333
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,14 @@ jobs:
runs-on: ubuntu-latest

steps:
# Check-out repository under $GITHUB_WORKSPACE, so the job can access it
- name: Check out code
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag }}

- name: Setup node
id: setup-node
uses: actions/setup-node@v3
with:
node-version: '16'
check-latest: true

- name: Yarn install and Cache dependencies
- name: Yarn install and cache dependencies
uses: graasp/graasp-deploy/.github/actions/yarn-install-and-cache@v1

- name: Check code styling and linting
run: yarn check

- name: Yarn build
run: yarn build
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"engines": {
"node": ">=16.0.0"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"description": "Graasp Translations",
"repository": {
"type": "git",
Expand All @@ -20,8 +20,12 @@
"Víctor González",
"Basile Spaenlehauer",
"Alexandre Chau",
"Julien Torrent"
"Julien Torrent",
"Jérémy La Scala"
],
"dependencies": {
"i18next": "22.4.15"
},
"scripts": {
"prepack": "yarn build",
"prepare": "yarn build && yarn hooks:install",
Expand All @@ -32,7 +36,9 @@
"test:watch": "exit 0",
"test": "exit 0",
"lint": "eslint .",
"pre-commit": "yarn prettier:check && yarn lint",
"type-check": "yarn tsc --noEmit",
"check": "yarn prettier:check && yarn lint && yarn check",
"pre-commit": "yarn check",
"post-commit": "git status",
"build": "tsc"
},
Expand All @@ -53,8 +59,5 @@
"ts-node": "10.9.1",
"typescript": "5.1.6"
},
"packageManager": "[email protected]",
"dependencies": {
"i18next": "22.4.15"
}
"packageManager": "[email protected]"
}
6 changes: 5 additions & 1 deletion src/langs/de/categories.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"DISCIPLINE": "Disziplin",
"EDUCATION_LEVEL": "Bildungsniveau",
"LANGUAGE": "Sprache"
"LANGUAGE": "Sprache",

"English": "Englisch",
"French": "Französisch",
"German": "Deutsch"
}
6 changes: 5 additions & 1 deletion src/langs/en/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
"lower secondary school": "Lower Secondary School",
"upper secondary school": "Upper Secondary School",
"vocational training": "Vocational Training",
"higher education": "Higher Education"
"higher education": "Higher Education",

"English": "English",
"French": "French",
"German": "German"
}
6 changes: 5 additions & 1 deletion src/langs/fr/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
"lower secondary school": "École secondaire inférieure",
"upper secondary school": "École secondaire supérieure",
"vocational training": "Enseignement professionel",
"higher education": "Éducation supérieure"
"higher education": "Éducation supérieure",

"English": "Anglais",
"French": "Français",
"German": "Allemand"
}

0 comments on commit 6466333

Please sign in to comment.