From 3081303bd1bd295c3eacec3f38602932700db42b Mon Sep 17 00:00:00 2001 From: Erik Vroon Date: Thu, 5 Aug 2021 00:12:45 +0200 Subject: [PATCH] Add nl locale in README and languages.json --- README.md | 1 + src/utils/languages.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index a9b795ce..548fe21c 100644 --- a/README.md +++ b/README.md @@ -349,6 +349,7 @@ Dashy has the ability to support multiple languages and locales. When available, #### Supported Languages - 🇬🇧 **English**: `en` - 🇩🇪 **German**: `de` +- 🇳🇱 **Dutch**: `nl` #### Add your Language It would be awesome for open source projects to be available to everyone, without language being a barrier to entry for non-native English speakers. If you have a few minutes to sapir, you're help with translating it would be very much appreciated. diff --git a/src/utils/languages.js b/src/utils/languages.js index 334e4574..2270a94d 100644 --- a/src/utils/languages.js +++ b/src/utils/languages.js @@ -1,6 +1,7 @@ // Locales - Import translation files here! import en from '@/assets/locales/en.json'; import de from '@/assets/locales/de.json'; +import nl from '@/assets/locales/nl.json'; // Language data - Add your country name, locale code and imported file here export const languages = [ @@ -16,6 +17,12 @@ export const languages = [ locale: de, flag: '🇩🇪', }, + { + name: 'Dutch', + code: 'nl', + locale: nl, + flag: '🇳🇱', + }, // Including: // name - Human readable name for your language (e.g German) // code - ISO language code (e.g. de)