Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10588364
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
572 B
Subscribers
None
View Options
diff --git a/i18n/rtl.go b/i18n/rtl.go
new file mode 100644
index 0000000..7a08e37
--- /dev/null
+++ b/i18n/rtl.go
@@ -0,0 +1,21 @@
+package i18n
+
+var rtlLangs = map[string]bool{
+ "ar": true, // Arabic
+ "dv": true, // Divehi
+ "fa": true, // Persian (Farsi)
+ "ha": true, // Hausa
+ "he": true, // Hebrew
+ "iw": true, // Hebrew (old code)
+ "ji": true, // Yiddish (old code)
+ "ps": true, // Pashto, Pushto
+ "ur": true, // Urdu
+ "yi": true, // Yiddish
+}
+
+func LangIsRTL(lang string) bool {
+ if _, ok := rtlLangs[lang]; ok {
+ return true
+ }
+ return false
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Apr 25, 6:20 AM (2 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3214961
Attached To
rWC Write.as Web Core
Event Timeline
Log In to Comment