Wolfsblvt
67eba1b472
fix: treat all English locale variants as supported fallback language ( #5431 )
...
Previously only exact 'en' was accepted as fallback when a language wasn't found. Now accepts any English variant (en-US, en-AU, etc.) to prevent spurious warnings for valid English locales.
2026-04-09 22:24:29 +03:00
YKDZ
966ab8336b
Merge pull request #5171 from YKDZ/release
...
i18n: Comprehensive update and refactor for Simplified Chinese (zh-CN)
2026-02-16 21:00:26 +02:00
Copilot
50e566ee0d
Set HTML lang attribute from app locale to enable CSS hyphens: auto ( #5136 )
...
* Initial plan
* Set HTML lang attribute based on app locale to enable CSS hyphens: auto
Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com >
2026-02-11 23:58:10 +02:00
DeclineThyself
8372e7bf9d
"gradually replacing property access with a dot operator" ( #4965 )
...
* "gradually replacing property access with a dot operator"
https://github.com/SillyTavern/SillyTavern/pull/4963#discussion_r2663003561
(?<=\w|\])\['([a-zA-Z]\w+)'\]
My regex found 593 matches across 47 files.
Also, two typos.
* Fixed chat[0].chat_metadata type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664275854
* Fixed `swipedElementsDiv[0]?.getAnimations().filter((a) => a.animationName` type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664274593
* Fixed config.MESSAGE_SANITIZE and config.MESSAGE_ALLOW_SYSTEM_UI type errors.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664266271
* Fixed group.date_last_chat type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664295652
* Reverted SlashCommandParser dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664310931
* LLM fixed canUseNegativeLookbehind.result; type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664314288
* Reverted chat-completions.js bodyParams and headers dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664317848
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664320088
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664324438
* Reverted openai.js data dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664326244
* Reverted tests/frontend/MacroEnvBuilder.e2e.js env.dynamicMacros dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664330990
* Partially reverted `window` dot property access.
* Reverted result.json() and settings dot property access.
* Reverted google.js headers dot property access.
* Fixed regex: `(?<=\w|\])\['([a-zA-Z]\w*)'\]`
* Swapped window to globalThis with dot property access.
* LLM fixed canUseNegativeLookbehind type.
* Refactor property access
* Consistency
---------
Co-authored-by: user <user@exmaple.com >
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2026-01-08 23:58:21 +02:00
Cohee
14212fb761
Fix type errors
2025-06-09 23:35:10 +03:00
Cohee
40720971c5
Hide unsupported language warning for 'en'
2025-02-28 21:55:48 +02:00
Cohee
a8f05c92ae
Revert "Switch tracking key to accountStorage"
...
This reverts commit 549fae4015 .
2025-02-27 23:22:08 +02:00
Wolfsblvt
549fae4015
Switch tracking key to accountStorage
2025-02-27 22:16:38 +01:00
Wolfsblvt
f11a834895
Switch tracking from Array to Set
2025-02-27 21:26:45 +01:00
Wolfsblvt
94441c54ae
Update logging structure for dyn translations
2025-02-27 20:59:38 +01:00
Wolfsblvt
c6a2b4e429
Trace-log stacktrace of translations without key
2025-02-27 20:48:16 +01:00
Wolfsblvt
08e184de26
Debug Func to track missing dynamic translations
...
- Add debug function to the debug menu that enables tracking of missing dynamic translations (via `t` or `translate`) once enabled
- Only works with non-English language loaded
- Prints it together with the existing debug print
2025-02-27 20:45:10 +01:00
Cohee
e312ae6b3b
Add locale data loading for extensions
2025-02-27 16:18:10 +00:00
Cohee
517b140911
Localize only the moment instance
2024-10-28 11:07:39 +02:00
Cohee
ebe2929dfd
Localize chat timestamps
2024-10-05 17:07:17 +03:00
Wolfsblvt
736b28020f
Move locale awaits into its init function
2024-07-10 17:56:01 +02:00
Wolfsblvt
d994528548
Extend i18n with translate and template literal
2024-06-28 23:53:25 +02:00
Wolfsblvt
be08e62fc1
Observer to find new elements with i18n attribute
2024-06-28 23:01:54 +02:00
Cohee
1eca18f287
Merge branch 'staging' into ru-l10n
2024-05-19 19:48:38 +03:00
Cohee
cd47f3b238
Fix loading locale data
2024-05-13 15:56:37 +03:00
Yokayo
6023eac4bb
Onboarding lang switch; more localizable strings; enhance ru-ru translation
2024-05-13 19:20:28 +07:00
Yokayo
dfa8c6c3d4
Remove cases
2024-05-07 13:11:59 +07:00
Cohee
2e278e7323
Fix missing localization for unknown locale
2024-04-26 22:57:42 +03:00
Yokayo
e799bd3920
Fix getMissingTranslations() and change its behavior
2024-04-24 21:12:40 +07:00
Cohee
3912c67965
Skip applying translations if no locale data is loaded
2024-03-12 20:24:45 +02:00
deffcolony
b6c29f7129
added new langs
...
+added new lang: Arabic, Portugese, Vietnamese
+added display names for all langs
+added data-i18n= tags for translation
2024-03-12 19:03:12 +01:00
Cohee
5f246aa756
Deduplicate locale loading logic
2024-03-10 20:49:11 +02:00
AlexVeeBee
c9374bce13
remove useless console.log
2024-03-09 23:04:22 +00:00
AlexVeeBee
458535c7bc
Split i18n.json file
2024-03-09 23:03:51 +00:00
valadaptive
a37f874e38
Require single quotes
2023-12-02 13:04:51 -05:00
valadaptive
0a27275772
Enable no-extra-semi lint
2023-12-02 10:32:26 -05:00
Cohee
b0d21659eb
/inject command to add prompt injections
2023-11-28 01:44:13 +02:00
Cohee
3b4e6f0b78
Add debug functions menu
2023-08-27 23:20:43 +03:00
Cohee
f5fd15ffd2
#976 Return "Continue on send". Allow continuing the first chat message. Add debug function for i18n.
2023-08-24 15:13:04 +03:00
Cohee
9deaec5877
More typechecks and comments
2023-08-22 14:30:49 +03:00
Cohee
2615eb8532
Extract system message templates to template files
2023-08-22 10:37:18 +03:00