17 lines
258 B
JavaScript
17 lines
258 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);
|