# LoRA Manager Internationalization (i18n) This document explains how to use the internationalization system in LoRA Manager. ## Features - Automatic language detection based on browser language - Support for English (en) and Simplified Chinese (zh-CN) - Fallback to English if the browser language is not supported - Dynamic text replacement in HTML templates - Number, date, and file size formatting according to locale - Right-to-Left (RTL) language support (framework ready) ## Browser Language Detection The system automatically detects the user's browser language using: 1. `navigator.language` - Primary browser language 2. `navigator.languages[0]` - First language in the user's preferred languages 3. Fallback to 'en' if no supported language is found ### Supported Language Codes - `en` - English (default) - `zh-CN` - Simplified Chinese - `zh` - Falls back to Simplified Chinese ## Usage in HTML Templates ### Basic Text Translation Add the `data-i18n` attribute to any HTML element: ```html LoRA Manager ``` ### Placeholder and Attribute Translation For form inputs and other attributes: ```html