You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The authentication and recovery endpoints use traditional properties files for localization.
163
175
@@ -230,53 +242,168 @@ To remove a language from your endpoints:
230
242
231
243
3. Restart the server for changes to take effect.
232
244
233
-
## Configure RTL & LTR support
245
+
## Configure Text Direction (RTL & LTR)
234
246
235
-
WSO2 Identity Server supports both Right-to-Left (RTL) and Left-to-Right (LTR) text directionsfor authentication and recovery endpoints.
247
+
WSO2 Identity Server supports both Right-to-Left (RTL) and Left-to-Right (LTR) text directions. **LTR is the default text direction** for most languages and doesn't require explicit configuration. RTL languages like Arabic, Hebrew, and Persian automatically adjust the interface layout and content flow when configured properly.
236
248
237
-
### LTR (Left-to-Right)
249
+
{% raw %}
238
250
239
-
LTR (Left-to-Right) is the **default textdirection** for most languages. You don't need to explicitly configure LTR support.
251
+
### My Account {#configure-text-direction-in-myaccount}
240
252
241
-
To ensure a language uses LTR direction:
253
+
{% endraw %}
242
254
243
-
1. Open the `LanguageOptions.properties` file.
255
+
To configure text direction for languages in My Account:
244
256
245
-
2. Add the language entry without the `rtl` suffix, or explicitly specify `ltr`:
257
+
1. Navigate to `<IS_HOME>/repository/deployment/server/webapps/myaccount/extensions/i18n/`.
246
258
247
-
```properties
248
-
lang.switch.en_US=en,English,ltr
259
+
2. Update your `meta.json` file to include the `direction` property:
To configure text direction for authentication and recovery endpoints:
380
+
381
+
1. Navigate to `<IS_HOME>/repository/deployment/server/webapps/authenticationendpoint/WEB-INF/classes/`.
269
382
270
383
2. Open the `LanguageOptions.properties` file.
271
384
272
-
3. Add the `,rtl` suffix to the language entry. For example, to enable RTL for Arabic:
385
+
3. Configure the language entry based on text direction:
386
+
387
+
**For LTR languages (default):**
388
+
389
+
```properties
390
+
lang.switch.en_US=en,English,ltr
391
+
```
392
+
393
+
or simply (LTR is assumed if not specified):
394
+
395
+
```properties
396
+
lang.switch.en_US=en,English
397
+
```
398
+
399
+
**For RTL languages:**
273
400
274
401
```properties
275
402
lang.switch.ar_AE=ar,Arabic - العربية,rtl
276
403
```
277
404
278
-
4. Save the file and restart the server for the changes to take effect.
405
+
4. Save the file and restart the server for changes to take effect.
279
406
280
407
!!! tip
281
408
282
-
The RTL/LTR configuration applies to both authentication and recovery endpoints when you update the `LanguageOptions.properties` file in the authentication endpoint directory.
409
+
The RTL/LTR configuration for authentication and recovery endpoints applies to both applications when you update the `LanguageOptions.properties` file in the authentication endpoint directory.
0 commit comments