The language attribute: How to set the language for a text

Undraw My Documents

About

The lang attributes is a styling attribute that sets the language of a text.

If you want to set the language for:

Example

English and Arabic on the same page.

<text lang="en">This text is in English and goes from ''Left To Write''</text>
<text lang="ar">بينما هذا النص عربي وينتقل من اليمين إلى اليسار</text>

This text is in English and goes from Left To Write

بينما هذا النص عربي وينتقل من اليمين إلى اليسار

Syntax

<component lang="languagevalue" />

where the language value is the two letters language. You can find it as the subtag in the official iana list

You can set it in a block as well as a inline component.

This attribute will also set the direction of the text to:

  • Right to Left
  • Or Left to Right




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Recommended Pages
Undraw My Documents
ComboStrap UI - Styling

Styling in ComboStrap is the possibility to render every component as you wish. ComboStrap has three levels of styling: the bootstrap stylesheet level - bootstrap standard theme the user stylesheet...
Bootstrapversionstylesheet
How to set the language (RTL/LTR) ?

In ComboStrap, you can define a language: for the application: (the default value for all pages) for a page: for a component: The language is identified by a language identifier value known...
Page Explorer List Name To Ui Region
Page-explorer: adding page navigation easily to your website

With the page-explorer component, you can add an explorer like panel that will list your pages in a list or collapsible tree fashion
Page Language Metadata Manager
The Page Language

You can set the language of a specific page with the page metadata manager The default value is the application language. This is also the default language for all language component.
Interface Language
The application Language

You can set the language for your whole application with the config:lang configuration. This is the default language for all text of your application: for the language page for the language component...
Undraw Building Websites I78t
The variables that can be used anywhere

This page describes which variables you can use in your content.
Undraw My Documents
صفحة مكتوبة باللغة العربية

صفحة توضح لغة التكوين باللغة العربية



Task Runner