Skip to content

armgit / dashy

Public Imported from GitHub
0

๐Ÿš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

๐ŸŒAdds en-GB locale for english english (#1305)

Alicia Sykes40229f293279
diff --git a/README.md b/README.md
index 68bba892..f1813cad 100644
--- a/README.md
+++ b/README.md
@@ -413,7 +413,8 @@ Dashy supports multiple languages and locales. When available, your language sho
#### Supported Languages
- ๐Ÿ‡ฌ๐Ÿ‡ง **English**: `en` - _Default_
-- ๐Ÿ‡ฆ๐Ÿ‡ช **Arabic**: `ar` - _Auto-generated_
+- ๐Ÿ‡ฌ๐Ÿ‡ง **English (British)**: `en-GB`
+- ๐Ÿ‡ฆ๐Ÿ‡ช **Arabic**: `ar` - _Auto-generated_ (needs human review!)
- ๐Ÿ‡ง๐Ÿ‡ฉ **Bengali**: `bn` - Contributed by **[@soaibsafi](https://github.com/soaibsafi)**
- ๐Ÿ‡ง๐Ÿ‡ฌ **Bulgarian**: `bg` - Contributed by **[@asenov](https://github.com/asenov)**
- ๐Ÿ‡จ๐Ÿ‡ณ **Chinese**: `cn` - Contributed by **[@FormatToday](https://github.com/FormatToday)**
@@ -423,10 +424,10 @@ Dashy supports multiple languages and locales. When available, your language sho
- ๐Ÿ‡ซ๐Ÿ‡ท **French**: `fr` - Contributed by **[@EVOTk](https://github.com/EVOTk)**
- ๐Ÿ‡ฉ๐Ÿ‡ช **German**: `de` - Contributed by **[@Niklashere](https://github.com/Niklashere)**
- ๐Ÿ‡ฌ๐Ÿ‡ท **Greek**: `el` - Contributed by **[@aviolaris](https://github.com/aviolaris)**
-- ๐Ÿ‡ฎ๐Ÿ‡ณ **Hindi**: `hi` - _Auto-generated_
+- ๐Ÿ‡ฎ๐Ÿ‡ณ **Hindi**: `hi` - _Auto-generated_ (needs human review!)
- ๐Ÿ‡ญ๐Ÿ‡บ **Hungarian**: `hu` - Contributed by **[@apgyorfi](https://github.com/apgyorfi)**
- ๐Ÿ‡ฎ๐Ÿ‡น **Italian**: `it` - Contributed by **[@alexdelprete](https://github.com/alexdelprete)**
-- ๐Ÿ‡ฏ๐Ÿ‡ต **Japanese**: `ja` - _Auto-generated_
+- ๐Ÿ‡ฏ๐Ÿ‡ต **Japanese**: `ja` - _Auto-generated_ (needs human review!)
- ๐Ÿ‡ฐ๐Ÿ‡ท **Korean**: `ko` - Contributed by **[@boggy-cs](https://github.com/boggy-cs)**
- ๐Ÿ‡ฐ๐Ÿ‡ฌ **Kyrgyz**: `ky` - Contributed by **[@noblepower1337](https://github.com/noblepower1337)**
- ๐Ÿ‡ณ๐Ÿ‡ด **Norwegian Bokmรฅl**: `nb` - Contributed by **[@rubjo](https://github.com/rubjo)**
@@ -706,4 +707,3 @@ For more info, see TLDR Legal's [Explanation of MIT](https://tldrlegal.com/licen
| / | / ~-. ~- _
|_____| |_____| ~ - . _ _~_-_
-->
-
diff --git a/docs/multi-language-support.md b/docs/multi-language-support.md
index 2adbf7f1..fcb08593 100644
--- a/docs/multi-language-support.md
+++ b/docs/multi-language-support.md
@@ -27,7 +27,7 @@ appConfig:
### Available Languages
-At the time of writing the following languages are supported: `en`, `ar`, `bg`, `bn`, `cs`, `da`, `de`, `el`, `es`, `fr`, `gl`, `hi`, `hu`, `it`, `ja`, `ko`, `nb`, `nl`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sv`, `tr`, `uk`, `zh-CN`, `zh-TW`, but an up-to-date list of all implemented translations can be found in [`./src/utils/languages.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/languages.js). Languages are specified by their 2-digit [ISO-639 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes), or sometimes a 4-digit code if it's a regional dialect.
+At the time of writing the following languages are supported: `en`, `en-GB`, `ar`, `bg`, `bn`, `cs`, `da`, `de`, `el`, `es`, `fr`, `gl`, `hi`, `hu`, `it`, `ja`, `ko`, `nb`, `nl`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sv`, `tr`, `uk`, `zh-CN`, `zh-TW`, but an up-to-date list of all implemented translations can be found in [`./src/utils/languages.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/languages.js). Languages are specified by their 2-digit [ISO-639 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes), or sometimes a 4-digit code if it's a regional dialect.
---
diff --git a/src/assets/locales/en-GB.json b/src/assets/locales/en-GB.json
new file mode 100644
index 00000000..eace799e
--- /dev/null
+++ b/src/assets/locales/en-GB.json
@@ -0,0 +1,17 @@
+{
+ "app-info": {
+ "license": "Licence",
+ "licence-third-party": "For licences for third-party modules, please see"
+ },
+ "theme-maker": {
+ "reset-toast": "Custom Colours for {theme} Removed"
+ },
+ "widgets": {
+ "gluetun-status": {
+ "organization": "Organisation"
+ },
+ "nextcloud": {
+ "memory-utilisation": "memory utilisation"
+ }
+ }
+}
diff --git a/src/utils/languages.js b/src/utils/languages.js
index 69bf9405..10211495 100644
--- a/src/utils/languages.js
+++ b/src/utils/languages.js
@@ -1,5 +1,6 @@
// Locales - Import translation files here! (sort alphabetically)
import en from '@/assets/locales/en.json';
+import enGB from '@/assets/locales/en-GB.json';
import ar from '@/assets/locales/ar.json';
import bg from '@/assets/locales/bg.json';
import bn from '@/assets/locales/bn.json';
@@ -40,6 +41,12 @@ export const languages = [
locale: en,
flag: '๐Ÿ‡ฌ๐Ÿ‡ง',
},
+ { // Real English (just the overides from en.json)
+ name: 'English (British)',
+ code: 'en-GB',
+ locale: enGB,
+ flag: '๐Ÿ‡ฌ๐Ÿ‡ง',
+ },
{ // Arabic
name: 'ุงู„ุนุฑุจูŠุฉ',
code: 'ar',