Upgraded some frontend dependencies

This commit is contained in:
Bernd Bestel
2023-05-19 17:10:20 +02:00
parent 628e779902
commit 49daed6c2b
4 changed files with 28 additions and 27 deletions

View File

@@ -231,10 +231,15 @@ U = function(relativePath)
return Grocy.BaseUrl.replace(/\/$/, '') + relativePath;
}
Grocy.Translator = new Translator(Grocy.LocalizationStrings);
Grocy.TranslatorQu = new Translator(Grocy.LocalizationStringsQu);
Grocy.Translator = new window.translator.default(Grocy.LocalizationStrings);
Grocy.TranslatorQu = new window.translator.default(Grocy.LocalizationStringsQu);
__t = function(text, ...placeholderValues)
{
if (!text)
{
return text;
}
if (Grocy.Mode === "dev")
{
var text2 = text;
@@ -248,6 +253,11 @@ __t = function(text, ...placeholderValues)
}
__n = function(number, singularForm, pluralForm, isQu = false)
{
if (!singularForm)
{
return singularForm;
}
if (Grocy.Mode === "dev")
{
var singularForm2 = singularForm;