verdnatura-chat/app/i18n/isRTL.js

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);