vn-verdnaturachat/app/i18n/isRTL.js

5 lines
245 B
JavaScript

// https://github.com/zoontek/react-native-localize/blob/master/src/constants.ts#L5
const USES_RTL_LAYOUT = ['ar', 'ckb', 'fa', 'he', 'ks', 'lrc', 'mzn', 'ps', 'ug', 'ur', 'yi'];
export const isRTL = locale => USES_RTL_LAYOUT.includes(locale);