From 914b381436cd199dcb1aaf7bbe65130528c8fc6e Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 24 Jul 2021 21:50:33 +0100 Subject: [PATCH] :card_file_box: Adds language attribute to appConfig, so user can set language --- docs/configuring.md | 1 + src/utils/ConfigSchema.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/configuring.md b/docs/configuring.md index 1216c6ab..f577197d 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -54,6 +54,7 @@ To disallow any changes from being written to disk via the UI config editor, set **Field** | **Type** | **Required**| **Description** --- | --- | --- | --- +**`language`** | `string` | _Optional_ | The 2 (or 4-digit) [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your language, e.g. `en` or `en-GB`. This must be a language that the app has already been [translated](https://github.com/Lissy93/dashy/tree/master/src/assets/locales) into. If your language is unavailable, Dashy will fallback to English. By default Dashy will attempt to auto-detect your language, although this may not work on some privacy browsers. **`statusCheck`** | `boolean` | _Optional_ | When set to `true`, Dashy will ping each of your services and display their status as a dot next to each item. This can be overridden by setting `statusCheck` under each item. Defaults to `false` **`statusCheckInterval`** | `boolean` | _Optional_ | The number of seconds between checks. If set to `0` then service will only be checked on initial page load, which is usually the desired functionality. If value is less than `10` you may experience a hit in performance. Defaults to `0` **`backgroundImg`** | `string` | _Optional_ | Path to an optional full-screen app background image. This can be either remote (http) or local (/). Note that this will slow down initial load diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.json index 86615453..bb7a04d1 100644 --- a/src/utils/ConfigSchema.json +++ b/src/utils/ConfigSchema.json @@ -54,6 +54,10 @@ "type": "string", "description": "A URL to an image asset to be displayed as background" }, + "language": { + "type": "string", + "description": "The ISO code of your desired language, must have translations present, check docs for more info" + }, "theme": { "type": "string", "default": "callisto",