language code for Chinese should be start with 'zh'

According to RFC4646 (
language codes for Traditional Chinese should be zh-Hant


import { getLanguages } from 'react-native-i18n'
getLanguages().then(languages => {

Set system language to Chinese

01-24 17:47:47.957 19851 19873 I ReactNativeJS: [ 'zh-Hans-CN', 'en-US' ]

Set system language to English

01-24 17:56:30.754 20563 20584 I ReactNativeJS: [ 'en-US', 'zh-Hans-CN' ]

Subscribe to Post, Code and Quiet Time.

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.