Fix i18n for form placeholders and make snowflake emoji clickable
- Add data-i18n-placeholder support to i18n.js for dynamic placeholder translation - Update form inputs with proper i18n attributes for placeholders and labels - Make snowflake emoji (❄️) clickable on all pages to return to homepage - Remove snowflake from translation strings since it's now a separate element - Add i18n support to README features list 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c4244aa307
commit
aea0426529
8 changed files with 40 additions and 33 deletions
|
@ -197,6 +197,13 @@ class I18nService {
|
|||
}
|
||||
});
|
||||
|
||||
// Update elements with data-i18n-placeholder attribute
|
||||
document.querySelectorAll('[data-i18n-placeholder]').forEach(element => {
|
||||
const key = element.getAttribute('data-i18n-placeholder');
|
||||
const translation = this.t(key);
|
||||
element.placeholder = translation;
|
||||
});
|
||||
|
||||
// Update elements with data-i18n-html attribute (for HTML content)
|
||||
document.querySelectorAll('[data-i18n-html]').forEach(element => {
|
||||
const key = element.getAttribute('data-i18n-html');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue