Skip to content

Commit

Permalink
Add nl locale in README and languages.json
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon committed Aug 4, 2021
1 parent bf026e9 commit 3081303
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions src/utils/languages.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -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)
Expand Down

0 comments on commit 3081303

Please sign in to comment.