mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 16:35:29 +00:00
enhanced localizer
This commit is contained in:
parent
28433add5c
commit
ef6635c1a8
@ -95,7 +95,7 @@ class WebAppLocalizer {
|
||||
// helper functions
|
||||
// A format prompt function
|
||||
formatPrompt(prompt_name, values) {
|
||||
return this.translations[this.lang].promptTranslations[prompt_name].replace(/\{(\w+)\}/g, (match, key) => values[key] || match);
|
||||
return this.translations[this.currentLang].promptTranslations[prompt_name].replace(/\{(\w+)\}/g, (match, key) => values[key] || match);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user