Skip to content

Merge multiple keys #230#277

Open
Abhinob-Bora wants to merge 1 commit intowikimedia:masterfrom
Abhinob-Bora:patch-1
Open

Merge multiple keys #230#277
Abhinob-Bora wants to merge 1 commit intowikimedia:masterfrom
Abhinob-Bora:patch-1

Conversation

@Abhinob-Bora
Copy link

Update index.html

Pull Request Summary: Dynamic Internationalization Keys

Overview:

This pull request introduces dynamic internationalization keys in the jQuery i18n demo. It allows using a data-i18n-key-prefix attribute on the element and a data-i18n-key attribute on each . This provides a more efficient way to handle translations for similar selections without duplicating keys. Changes: Added data-i18n-key-prefix to for a common key prefix. Added data-i18n-key to each for unique identifiers.

Usage:

Set a common prefix with data-i18n-key-prefix.
Use data-i18n-key on each for unique identifiers.

Benefits:

Cleaner internationalization for similar selections. Avoids duplicate keys for each option.

Update index.html

Pull Request Summary: Dynamic Internationalization Keys

Overview:

This pull request introduces dynamic internationalization keys in the jQuery i18n demo. It allows using a data-i18n-key-prefix attribute on the <select> element and a data-i18n-key attribute on each <option>. This provides a more efficient way to handle translations for similar selections without duplicating keys.

Changes:
Added data-i18n-key-prefix to <select> for a common key prefix.
Added data-i18n-key to each <option> for unique identifiers.

Usage:

Set a common prefix with data-i18n-key-prefix.
Use data-i18n-key on each <option> for unique identifiers.

Benefits:

Cleaner internationalization for similar selections.
Avoids duplicate keys for each option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant