Registering Plugin Modules with Language Filtering
In the framework of plugin modules, you can tailor the user experience by registering the plugin with support for different languages. This customization is particularly useful in multilingual applications, allowing you to serve content in the user's preferred language. Language filtering is implemented through the culture
parameter in the iFrame URL, enabling the plugin to display the appropriate language based on the setting.
How to Use the Language Filter
To use the language filter, append the culture
parameter to the iFrame URL with the appropriate language code. The language code follows the format of a two-letter ISO 639-1 language code, followed by a hyphen, and then a two-letter ISO 3166-1 alpha-2 country code. This format ensures that the plugin can adapt not only to the language but also to regional dialects and cultural differences.
Examples
Below are examples demonstrating how to register the plugin module for different languages by adjusting the culture
parameter in the iFrame URL:
- Hungarian:
"iframeUrl": "https://ase-onecable-prod-westeu-01.azurewebsites.net?culture=hu-HU",
- Polish:
"iframeUrl": "https://ase-onecable-prod-westeu-01.azurewebsites.net?culture=pl-PL",
- English:
"iframeUrl": "https://ase-onecable-prod-westeu-02.azurewebsites.net?culture=EN-en",
📢 If you need more languages please contact our support team.
To further illustrate this concept, here are additional examples for various languages:
- French:
"iframeUrl": "https://ase-onecable-prod-westeu-03.azurewebsites.net?culture=fr-FR",
- Spanish:
"iframeUrl": "https://ase-onecable-prod-westeu-03.azurewebsites.net?culture=es-ES",
- German:
"iframeUrl": "https://ase-onecable-prod-westeu-03.azurewebsites.net?culture=de-DE",
- Japanese:
"iframeUrl": "https://ase-onecable-prod-westeu-03.azurewebsites.net?culture=ja-JP",
- Italian:
"iframeUrl": "https://ase-onecable-prod-westeu-03.azurewebsites.net?culture=it-IT",
Conclusion
By properly utilizing the culture
parameter in the iFrame URL, you can enhance the accessibility and user experience of your plugin module across different languages and regions. This approach fosters a more inclusive environment, ensuring that users from various linguistic backgrounds can effectively interact with your plugin.