Skip to content

Commit 817672e

Browse files
authored
feat: add Dutch language support (#420)
1 parent 6e412d4 commit 817672e

3 files changed

Lines changed: 388 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ docker run -p 8080:80 publiccode-editor
100100

101101
you can run the Docker container and see the results at [`http://localhost:8080`](http://localhost:8080).
102102

103+
## Localization
104+
105+
To access the web-app in a specific language use the `lang` param like this: `https://publiccode-editor-develop.vercel.app/?lang=en`.
106+
107+
The languages that can be picked are:
108+
- "it" 🇮🇹
109+
- "en" 🇬🇧
110+
- "fr" 🇫🇷
111+
- "de" 🇩🇪
112+
- "nl" 🇳🇱
113+
103114
## Contributing
104115

105116
We welcome contributions!

src/i18n/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ import en from "./locales/en.json";
99
import fr from "./locales/fr.json";
1010
import it from "./locales/it.json";
1111
import de from "./locales/de.json";
12+
import nl from "./locales/nl.json";
1213

1314
type LocalizedEntity = 'language' | 'region';
1415

1516
const resources = {
1617
it: { translation: it },
1718
en: { translation: en },
1819
fr: { translation: fr },
19-
de: { translation: de }
20+
de: { translation: de },
21+
nl: { translation: nl },
2022
};
2123

2224
i18n

0 commit comments

Comments
 (0)