@sudobility/building_blocks_rn 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,5 +52,6 @@ export const RTL_LANGUAGES = ['ar'];
|
|
|
52
52
|
* Check if a language code is RTL.
|
|
53
53
|
*/
|
|
54
54
|
export function isRTL(languageCode) {
|
|
55
|
-
|
|
55
|
+
const baseCode = languageCode.toLowerCase().replace('_', '-').split('-')[0];
|
|
56
|
+
return RTL_LANGUAGES.includes(baseCode);
|
|
56
57
|
}
|