From 4b9673e05afea208272b43cb2b4076abb1a88069 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Tue, 29 Aug 2023 01:28:14 -0700 Subject: [PATCH] fix arabic --- index.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 196ca75..c3559a1 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,7 @@
Organic Maps Locale File Viewer
-

Don't worry about adding or removing periods like . (Japanese) or (Hindi) at the end of strings. They will not affect the TTS speech either way.

+

Don't worry about adding or removing periods like . (Japanese) or (Hindi) at the end of strings. They will not affect the TTS speech either way.
You may hover over phrases to see their English version in a popup. Right-to-left languages may not be displayed correctly.

Locale language:
"; @@ -273,7 +281,10 @@ function buildFmtStringInput(key, value, color="text-bg-primary", fmtKey, editable=true) { var classes = "stringTxt"; - console.log(fmtKey); + + // replace RTL chars with their HTML equivalent + value = value.replace("\\u202C", "‬"); + var out = "