Created
September 24, 2022 11:17
-
-
Save mailtodanish/d6327eca2f99eb84f5d8bc52f1721f3d to your computer and use it in GitHub Desktop.
multi language in vbcs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(["jquery"], ($) => { | |
'use strict'; | |
class PageModule { | |
constructor() { | |
let lang = oj.Config.getLocale(); | |
$("html").attr("lang", lang); | |
if (lang === "ar") { | |
$("html").attr("dir", "rtl"); | |
} else { | |
$("html").attr("dir", "ltr"); | |
} | |
} | |
} | |
return PageModule; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment