added [lang] ezc function for returning a localized string

This commit is contained in:
2021-10-07 04:41:06 +02:00
parent 1741597d52
commit c3122fb82f
3 changed files with 13 additions and 0 deletions

View File

@@ -381,6 +381,15 @@ void winix_is_htmx_request(Info & i)
}
void lang(Info & i)
{
i.res = !i.par.empty();
if( i.res )
i.out << locale.Get(i.par);
}
} // namespace