/**
 * Tiny i18n helper. The site has two languages (RU default, EN secondary)
 * and no need for a heavy framework — every translatable string is either
 * passed through `t(lang, ru, en)` or stored as a `{ ru, en }` object that
 * `pick(lang, obj)` resolves.
 */

const t = (lang, ru, en) => (lang === 'ru' ? ru : en);
const pick = (lang, dict) => (dict ? dict[lang] : '');

window.T = t;
window.t = t;
window.pick = pick;
