mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
Feature Localization (i18n) Support (#557)
* init localization * Update defaul to en * Fix merge issue and import path. * Set default to en * Change jsx to tsx * Update the password max length string. * Remove languageContext as using the recoil instead.
This commit is contained in:
parent
13627c7f4f
commit
47e5493744
15 changed files with 29076 additions and 115 deletions
|
|
@ -1,4 +1,10 @@
|
|||
import { useRecoilValue } from 'recoil';
|
||||
import store from '~/store';
|
||||
import { localize } from '~/localization/Translation';
|
||||
|
||||
export default function Prompt({ title, prompt }) {
|
||||
const lang = useRecoilValue(store.lang);
|
||||
|
||||
return (
|
||||
<div
|
||||
// onclick="selectPromptTemplate(0)"
|
||||
|
|
@ -12,7 +18,7 @@ export default function Prompt({ title, prompt }) {
|
|||
{prompt}
|
||||
</p>
|
||||
</button>
|
||||
<span className="font-medium">Use prompt →</span>
|
||||
<span className="font-medium">{localize(lang, 'com_ui_use_prompt')} →</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue