From 3bc14a493a37b9daedeefd3623b4b9a96a56f04d Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sat, 15 Jul 2023 14:13:22 +0200 Subject: [PATCH] reorganise locale list it's more visible in the locale directory, the published column is clearer when the list contains objects also: prepare language symbols, but without enabling them yet --- README.md | 2 +- assets/style.scss | 2 +- components/Header.vue | 2 +- components/LanguageVersions.vue | 6 ++-- components/LocaleIcon.vue | 49 +++++++++++++++++++++++++++++++++ components/Roles.vue | 4 +-- components/VersionDropdown.vue | 2 ++ locale/locales.js | 27 ++++++++++++++++++ routes/select.vue | 2 ++ server/cards.js | 6 ++-- server/routes/admin.js | 8 +++--- server/routes/profile.js | 4 +-- server/stats.js | 1 - src/buildLocaleList.js | 8 +++--- src/locales.js | 27 ------------------ 15 files changed, 102 insertions(+), 48 deletions(-) create mode 100644 components/LocaleIcon.vue create mode 100644 locale/locales.js delete mode 100644 src/locales.js diff --git a/README.md b/README.md index 58412183e..66dbba0f5 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ See [LICENSE](./LICENSE.md) ## Development Documentation Read https://en.pronouns.page/new-version -When you add a new language, remember to modify the file ./src/locales.js to add your language. true means the translation is finished and published, so you'll probably want to go with false.\ +When you add a new language, remember to modify the file ./locale/locales.js to add your language. true means the translation is finished and published, so you'll probably want to go with false.\ If you're having problems using Yarn, npm is probably fine, but remember to switch any `yarn [x]` commands for `npm run [x]`\ Remember to modify the ./.env file. You don't really need to set up any external APIs, just make up a secret. In order to test the login system, you can type in an email followed by a + (example@pronouns.page+). This way, you won't need a mailer, as the code will always be 999999. This feature is exclusive to development builds. diff --git a/assets/style.scss b/assets/style.scss index c340c786e..a00de472d 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -277,7 +277,7 @@ body:not(.reduced-colours) { .locale-dropdown.show { display: flex; flex-wrap: wrap; - width: 320px; + width: 360px; .dropdown-divider { width: 100%; } diff --git a/components/Header.vue b/components/Header.vue index 066cf0b6c..eabe889a6 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -17,7 +17,7 @@ - diff --git a/components/LanguageVersions.vue b/components/LanguageVersions.vue index fa296bd80..7f480ff19 100644 --- a/components/LanguageVersions.vue +++ b/components/LanguageVersions.vue @@ -4,11 +4,13 @@ links.languageVersions -