mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-09 17:42:38 +01:00
🌍 fix: Enhance i18n Support & Optimize Category Handling (#5866)
* fix: Missing Translations in Prompt Filters in Prompt Library * fix: fixed issue with `zh` feat: added `Estonian` language option * fix: test for `i18n.ts` * refactor: `pt` --> `pt-BR` and `pt-PT` * feat: request access to another language. default is only one language during invite.
This commit is contained in:
parent
52a6de2aa7
commit
04c2a5abe7
33 changed files with 819 additions and 41 deletions
|
|
@ -34,10 +34,9 @@ describe('i18next translation tests', () => {
|
|||
expect(i18n.t('com_ui_examples')).toBe(English.com_ui_examples);
|
||||
});
|
||||
|
||||
it('should return an empty string for an invalid key', () => {
|
||||
it('should return the key itself for an invalid key', () => {
|
||||
i18n.changeLanguage('en');
|
||||
// @ts-ignore
|
||||
expect(i18n.t('invalid-key')).toBe('');
|
||||
expect(i18n.t('invalid-key')).toBe('invalid-key'); // Returns the key itself
|
||||
});
|
||||
|
||||
it('should correctly format placeholders in the translation', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue