From 7cf16657bff0e1821d4ddf431f4036f882060da2 Mon Sep 17 00:00:00 2001 From: Bruno Perel Date: Fri, 8 Nov 2024 23:23:23 +0100 Subject: [PATCH] dumili: Add some translations, include web translations --- apps/dumili/eslint.config.mjs | 8 ++++- apps/dumili/src/App.vue | 2 +- apps/dumili/src/components/Entry.vue | 14 ++++---- apps/dumili/src/components/Gallery.vue | 2 +- apps/dumili/src/components/Issue.vue | 2 +- apps/dumili/src/components/IssueSelect.vue | 9 ++--- .../src/components/IssueSuggestionModal.vue | 10 +++--- .../dumili/src/components/TableOfContents.vue | 2 +- apps/dumili/src/composables/useHint.ts | 2 +- apps/dumili/src/pages/index.vue | 35 ++++++++++++------- apps/dumili/translations/messages.en.json | 14 ++++++++ 11 files changed, 66 insertions(+), 34 deletions(-) diff --git a/apps/dumili/eslint.config.mjs b/apps/dumili/eslint.config.mjs index 7e7f9c59e..f4773393c 100644 --- a/apps/dumili/eslint.config.mjs +++ b/apps/dumili/eslint.config.mjs @@ -70,12 +70,18 @@ export default [ ], "@intlify/vue-i18n/no-deprecated-i18n-component": "off", + "@intlify/vue-i18n/no-raw-text": [ + "warn", + { + ignoreText: ["DuMILi", "DucksManager", "OK", "11zon.com"], + }, + ], }, settings: { "vue-i18n": { localeDir: { - pattern: "./translations/*.json", + pattern: ["./translations/*.json", "../web/translations/*.json"], localeKey: "file", }, }, diff --git a/apps/dumili/src/App.vue b/apps/dumili/src/App.vue index 27098056c..81973dfeb 100644 --- a/apps/dumili/src/App.vue +++ b/apps/dumili/src/App.vue @@ -1,7 +1,7 @@