@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
- return RTL_LANGUAGES.includes(languageCode);
55
+ const baseCode = languageCode.toLowerCase().replace('_', '-').split('-')[0];
56
+ return RTL_LANGUAGES.includes(baseCode);
56
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/building_blocks_rn",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Higher-level shared UI building blocks for Sudobility React Native apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",