hebrew-i18n
Installation
SKILL.md
Hebrew I18n
Instructions
Step 1: Set Up the I18n Framework
Direction belongs on the root <html> element, not on a wrapper div. In a single-page app that switches language at runtime, update it whenever the locale changes:
function applyLocale(locale) {
document.documentElement.lang = locale;
document.documentElement.dir = locale === 'he' ? 'rtl' : 'ltr';
}