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
Enhance localization guide by adding detailed instructions for configuring text direction and adding locales for authentication, recovery, and accounts endpoints
Configure localization for authentication, recovery, and accounts endpoints using traditional properties files.
250
+
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.
175
251
176
-
#### Add a locale to endpoints
252
+
!!! Note
177
253
178
-
Follow these steps to add a new language to your authentication, recovery, and accounts endpoints:
254
+
The text direction is not currently configurable for the **Console**.
4. You should see the screens displaying content in the configured language.
237
-
238
-
#### Remove a locale from endpoints
239
-
240
-
To remove a language from your authentication, recovery, and accounts endpoints:
241
-
242
-
1. Delete the corresponding `Resources_<locale>.properties` files from authentication, recovery, and accounts endpoint directories.
282
+
**For RTL languages:**
243
283
244
-
2. Remove the language entry from the `LanguageOptions.properties` file.
284
+
```properties
285
+
lang.switch.ar_AE=ar,Arabic - العربية,rtl
286
+
```
245
287
246
-
3. Restart the server for changes to take effect.
288
+
4. Save the file and restart the server for changes to take effect.
247
289
248
-
## Configure Text Direction (RTL & LTR)
290
+
!!! tip
249
291
250
-
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.
292
+
The RTL/LTR configuration applies to all three endpoints (authentication, recovery, and accounts) since they share the same `LanguageOptions.properties` file.
251
293
252
294
{% raw %}
253
295
@@ -310,103 +352,3 @@ To configure text direction for languages in My Account:
310
352
```
311
353
312
354
3. Save the file and restart the server for changes to take effect.
To configure text direction for authentication, recovery, and accounts endpoints:
383
-
384
-
1. Navigate to `<IS_HOME>/repository/deployment/server/webapps/authenticationendpoint/WEB-INF/classes/`.
385
-
386
-
2. Open the `LanguageOptions.properties` file.
387
-
388
-
3. Configure the language entry based on text direction:
389
-
390
-
**For LTR languages (default):**
391
-
392
-
```properties
393
-
lang.switch.en_US=en,English,ltr
394
-
```
395
-
396
-
or simply (LTR is assumed if not specified):
397
-
398
-
```properties
399
-
lang.switch.en_US=en,English
400
-
```
401
-
402
-
**For RTL languages:**
403
-
404
-
```properties
405
-
lang.switch.ar_AE=ar,Arabic - العربية,rtl
406
-
```
407
-
408
-
4. Save the file and restart the server for changes to take effect.
409
-
410
-
!!! tip
411
-
412
-
The RTL/LTR configuration applies to all three endpoints (authentication, recovery, and accounts) since they share the same `LanguageOptions.properties` file.
0 commit comments