Usage
Toggle the language using the EN/RU button in the sidebar header. The preference is saved inlocalStorage and applied instantly without page reload.
Implementation
Translations are defined in thei18n object in templates/index.html with keys for en and ru. The t(key) function returns the string for the current language. applyLang() re-renders all static and dynamic content.