mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
i18n: drop Weblate, take translations via pull request
Weblate stayed pinned to the pre-transfer repo URL and stopped syncing. The in-app links now point to a new README section explaining how to fix or add a language with a PR or by sending the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
d299343835
commit
806de52382
9 files changed
+24
-15
No files matched your search
@@ -365,6 +365,15 @@ A share link (above) always takes priority over the baked-in default when both a
|
||||
|
||||
Either way: on your own hosted instance, the mandatory first-visit Terms of Use is shown and accepted before anything auto-connects; and if the connection fails, the connect dialog opens prefilled so the visitor can fix it and retry by hand.
|
||||
|
||||
<a id="translating"></a>
|
||||
## 🌍 Translating
|
||||
|
||||
The UI texts live in flat JSON files in [`web/src/locales/`](web/src/locales/), one per language, with `en.json` as the reference. Untranslated keys fall back to English.
|
||||
|
||||
- **Fix or complete a language:** edit its file and open a pull request.
|
||||
- **Add a new language:** copy `en.json` to `<code>.json` (for example `it.json`), translate the values and open a pull request. Leave the keys and placeholders like `{count}` as they are. I'll wire the language into the selector.
|
||||
- **No GitHub account?** Send the file via the in-app feedback form or to feedback@webspeak3.de.
|
||||
|
||||
## Credits
|
||||
|
||||
The vast majority of this project's code was written by [Claude Code](https://claude.com/claude-code) (Anthropic's Claude), working iteratively with the repo owner one feature at a time.
|
||||
|
||||
+2
-2
@@ -6474,7 +6474,7 @@ function AnwendungPanel({
|
||||
</select>
|
||||
</label>
|
||||
<p className="ts-options-hint">
|
||||
<a href="https://hosted.weblate.org/projects/webspeak3/" target="_blank" rel="noreferrer">
|
||||
<a href="https://github.com/WebSpeak3/webspeak3#translating" target="_blank" rel="noreferrer">
|
||||
{t("app.language.helpTranslate")}
|
||||
</a>
|
||||
</p>
|
||||
@@ -13115,7 +13115,7 @@ function AppInner() {
|
||||
</a>
|
||||
<a
|
||||
className="ts-menu-item"
|
||||
href="https://hosted.weblate.org/projects/webspeak3/"
|
||||
href="https://github.com/WebSpeak3/webspeak3#translating"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
onClick={() => setHelpMenuOpen(false)}
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ const LANGUAGE_KEY = "webspeak3:language";
|
||||
// user-facing string in the app should have an entry in every file - falls
|
||||
// back to the English string (or the raw key) if a translation is missing,
|
||||
// so a partial dictionary never blanks out the UI. Plain JSON (not inline
|
||||
// TS objects) so translation tools like Weblate can read/write these files
|
||||
// TS objects) so translation tools can read/write these files
|
||||
// directly.
|
||||
const translations: Record<Lang, Record<string, string>> = {
|
||||
de,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"menu.help.about": "O WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Seznam změn",
|
||||
"menu.help.translate": "Pomozte s překladem (Weblate)",
|
||||
"menu.help.translate": "Pomozte s překladem (GitHub)",
|
||||
"menu.extras.identities": "Identity",
|
||||
"menu.extras.contacts": "Kontakty",
|
||||
"menu.extras.collectedUrls": "Shromážděné URL",
|
||||
@@ -408,7 +408,7 @@
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.ru": "Русский (бета)",
|
||||
"app.language.helpTranslate": "Missing your language or spotted wrong translation? Help out on Weblate →",
|
||||
"app.language.helpTranslate": "Chybí váš jazyk nebo jste našli chybu v překladu? Takto můžete pomoct →",
|
||||
"app.serverBanner": "Zobrazovat bannery serveru",
|
||||
"app.serverBanner.hint": "Banner se načítá přímo z adresy nastavené administrátorem serveru a tento hostitel vidí vaši IP adresu.",
|
||||
"app.chatImages": "Načítat obrázky v chatu",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"menu.help.about": "Über WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Changelog",
|
||||
"menu.help.translate": "Mitübersetzen (Weblate)",
|
||||
"menu.help.translate": "Mitübersetzen (GitHub)",
|
||||
"menu.extras.identities": "Identitäten",
|
||||
"menu.extras.contacts": "Kontakte",
|
||||
"menu.extras.collectedUrls": "Gesammelte URLs",
|
||||
@@ -408,7 +408,7 @@
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.ru": "Русский (бета)",
|
||||
"app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? Hilf mit auf Weblate →",
|
||||
"app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? So hilfst du mit →",
|
||||
"app.serverBanner": "Server-Banner anzeigen",
|
||||
"app.serverBanner.hint": "Das Banner lädt direkt von der Adresse, die der Serverbetreiber eingetragen hat. Dieser Host sieht dabei deine IP-Adresse.",
|
||||
"app.chatImages": "Bilder im Chat laden",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"menu.help.about": "About WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Changelog",
|
||||
"menu.help.translate": "Help translate (Weblate)",
|
||||
"menu.help.translate": "Help translate (GitHub)",
|
||||
"menu.extras.identities": "Identities",
|
||||
"menu.extras.contacts": "Contacts",
|
||||
"menu.extras.collectedUrls": "Collected URLs",
|
||||
@@ -408,7 +408,7 @@
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.ru": "Русский (бета)",
|
||||
"app.language.helpTranslate": "Missing your language or spotted a wrong translation? Help out on Weblate →",
|
||||
"app.language.helpTranslate": "Missing your language or spotted a wrong translation? Here's how to help →",
|
||||
"app.serverBanner": "Show server banners",
|
||||
"app.serverBanner.hint": "The banner loads straight from the address the server admin set, and that host sees your IP address.",
|
||||
"app.chatImages": "Load images in chat",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"menu.help.about": "درباره WebSpeak3",
|
||||
"menu.help.github": "گیتهاب",
|
||||
"menu.help.changelog": "تاریخچه تغییرات",
|
||||
"menu.help.translate": "کمک به ترجمه (Weblate)",
|
||||
"menu.help.translate": "کمک به ترجمه (GitHub)",
|
||||
"menu.extras.identities": "هویتها",
|
||||
"menu.extras.contacts": "مخاطبین",
|
||||
"menu.extras.collectedUrls": "لینکهای جمعآوریشده",
|
||||
@@ -408,7 +408,7 @@
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.ru": "Русский (бета)",
|
||||
"app.language.helpTranslate": "زبان شما موجود نیست یا ترجمهای اشتباه دیدید؟ در Weblate کمک کنید →",
|
||||
"app.language.helpTranslate": "زبان شما موجود نیست یا ترجمهای اشتباه دیدید؟ روش کمک کردن →",
|
||||
"app.serverBanner": "نمایش بنر سرور",
|
||||
"app.serverBanner.hint": "بنر مستقیماً از نشانیای بارگیری میشود که مدیر سرور تعیین کرده است و آن میزبان نشانی IP شما را میبیند.",
|
||||
"app.chatImages": "بارگیری تصاویر در گفتگو",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"menu.help.about": "О WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "Список изменений",
|
||||
"menu.help.translate": "Помочь с переводом (Weblate)",
|
||||
"menu.help.translate": "Помочь с переводом (GitHub)",
|
||||
"menu.extras.identities": "Идентичности",
|
||||
"menu.extras.contacts": "Контакты",
|
||||
"menu.extras.collectedUrls": "Собранные ссылки",
|
||||
@@ -408,7 +408,7 @@
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.ru": "Русский (бета)",
|
||||
"app.language.helpTranslate": "Нет вашего языка или нашли ошибку в переводе? Помогите на Weblate →",
|
||||
"app.language.helpTranslate": "Нет вашего языка или нашли ошибку в переводе? Как помочь →",
|
||||
"app.serverBanner": "Показывать баннеры серверов",
|
||||
"app.serverBanner.hint": "Баннер загружается напрямую с адреса, указанного администратором сервера, и этот хост видит ваш IP-адрес.",
|
||||
"app.chatImages": "Загружать изображения в чате",
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
"app.language.fa": "فارسی (بتا)",
|
||||
"app.language.cs-CZ": "Čeština",
|
||||
"app.language.ru": "Русский (бета)",
|
||||
"app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →",
|
||||
"app.language.helpTranslate": "没有你的语言,或发现翻译有误?了解如何参与 →",
|
||||
"app.serverBanner": "显示服务器横幅",
|
||||
"app.serverBanner.hint": "横幅直接从服务器管理员设置的地址加载,该主机会看到你的 IP 地址。",
|
||||
"app.chatImages": "在聊天中加载图片",
|
||||
@@ -593,7 +593,7 @@
|
||||
"menu.help.about": "关于 WebSpeak3",
|
||||
"menu.help.github": "GitHub",
|
||||
"menu.help.changelog": "更新日志",
|
||||
"menu.help.translate": "参与翻译(Weblate)",
|
||||
"menu.help.translate": "参与翻译(GitHub)",
|
||||
"menu.extras.feedback": "发送反馈",
|
||||
"feedback.fab.nudge": "你觉得 WebSpeak3 怎么样?欢迎反馈!",
|
||||
"donate.label": "捐助",
|
||||
|
||||
Reference in new issue
Block a user