From 3d44d773e8545116ff320f91f8104f335c497ebe Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Sun, 14 Sep 2025 19:47:26 +0200 Subject: [PATCH] refactor: list available voices independent of locale configs --- app/components/Pronunciation.vue | 46 +++--- app/components/PronunciationInput.vue | 88 +++++------- app/components/PronunciationSpeaker.vue | 10 +- locale/_base/config.suml | 6 +- locale/ar/config.suml | 10 +- locale/config.ts | 43 +----- locale/en/config.suml | 6 +- locale/eo/config.suml | 1 - locale/es/config.suml | 10 +- locale/et/config.suml | 6 +- locale/fo/config.suml | 5 - locale/fr/config.suml | 10 +- locale/gl/config.suml | 3 +- locale/hbs/config.suml | 14 +- locale/he/config.suml | 7 +- locale/it/config.suml | 6 +- locale/ja/config.suml | 6 +- locale/ko/config.suml | 6 +- locale/nb/config.suml | 6 +- locale/nl/config.suml | 6 +- locale/nn/config.suml | 6 +- locale/pl/config.suml | 6 +- locale/pt/config.suml | 10 +- locale/ro/config.suml | 6 +- locale/ru/config.suml | 6 +- locale/sv/config.suml | 6 +- locale/tok/config.suml | 6 +- locale/tr/config.suml | 6 +- locale/vi/config.suml | 1 - locale/yi/config.suml | 1 - locale/zh/config.suml | 6 +- server/express/pronounce.ts | 17 +-- shared/pronunciation/voices.ts | 177 ++++++++++++++++++++++++ 33 files changed, 272 insertions(+), 277 deletions(-) create mode 100644 shared/pronunciation/voices.ts diff --git a/app/components/Pronunciation.vue b/app/components/Pronunciation.vue index 03d8ff677..043d3d528 100644 --- a/app/components/Pronunciation.vue +++ b/app/components/Pronunciation.vue @@ -1,3 +1,22 @@ + + - -