ComboStrap Page Metadata - Lang (Language)
Table of Contents
About
The lang metadata is an language identifier that sets the language of a page
The format supported is the ISO 639-2 2 letters code.
Example:
- en (English),
- fr (French)
- nl (Dutch)
- ar (Arabic). (See Right-to-left language support)
The language identifier is used:
- in the locale to localize the page.
- in the strap template to set the lang and direction
Demo
We have created a page in arabic that has a language direction from right-to-left (rtl)
See the demo page: صفحة مكتوبة باللغة العربية
Set
The default value is set in the config:lang configuration.
You can set a lang code in the manager for a specific page.
Configuration
config:lang
The default value is set in the config:lang configuration.
RTL: Right to left language
As bootswatch does not support yet RTL languages, you need to set your Bootstrap version at minimal to 5 with the bootstrap theme.
Example with the version 5.01 - bootstrap: