Skip to content

Commit b6c2a81

Browse files
committed
Connect the new languages
1 parent aaea5aa commit b6c2a81

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Goal is to make it as lightweight as possible, meaning no unnecessary bloat or d
2020

2121
## i18n - Internationalization
2222
This project supports multiple languages through the use of internationalization (i18n) files.
23-
You can find these files in the [`src/i18n`](i18n) directory.
23+
You can find these files in the [`i18n`](i18n) directory.
2424
If you want to contribute with translations, feel free to do so by following the instructions in the [`i18n/README.md`](i18n/README.md) file there.
2525

2626
## Development

src/js/utils/i18n.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import * as enGb from "@i18n/en-GB.json"
2-
import * as noNb from "@i18n/no-NB.json"
3-
import * as esEs from "@i18n/es-ES.json"
1+
import enGb from "@i18n/en-GB.json"
2+
import noNb from "@i18n/no-NB.json"
3+
import esEs from "@i18n/es-ES.json"
4+
import frFr from "@i18n/fr-FR.json"
5+
import ptPt from "@i18n/pt-PT.json"
46

57
export const DEFAULT_LANG = "en-GB"
68
export let SELECTED_LANG = DEFAULT_LANG
@@ -25,7 +27,9 @@ export function getLocale() {
2527
export const translations = {
2628
"en-GB": enGb,
2729
"no-NB": noNb,
28-
"es-ES": esEs
30+
"es-ES": esEs,
31+
"fr-FR": frFr,
32+
"pt-PT": ptPt
2933
}
3034

3135
/**

0 commit comments

Comments
 (0)