Useless global var. Initialize it in load_all_locales
function to not waste RAM
I think, it's better to just add a link
into head
and provide link to this as a regular static. Also, what do you think about webp? Maybe add multiple link
s (to webp
and to ico
for fallback)?
Solve this and it's ready to merge
I'll fix it in mainstream
Your project can be in a separate repo with autobuild. While building the OS download an artifact from CI
Maybe just redirect to en version? Or look at accept-language
header and choose the most preferred
The code is duplicated. The only difference is a template name
You joined all templates for different languages. Now pages for them are different. Are you sure you want to unificate?
I think, it is an overcomplicated code: better to sort all other language codes separately and then append to ['en', 'ru', 'es']