Fix newpost and ready for new version
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//import { getLocales } from 'expo-localization';
|
||||
import { getLocales } from 'expo-localization';
|
||||
import { I18n } from 'i18n-js';
|
||||
import moment from 'moment'
|
||||
import 'moment/min/locales'
|
||||
@@ -150,7 +150,7 @@ const messages = {
|
||||
const i18n = new I18n(messages);
|
||||
|
||||
// Set the locale once at the beginning of your app.
|
||||
i18n.locale = 'es';//getLocales()[0].languageCode;
|
||||
i18n.locale = getLocales()[0].languageCode;
|
||||
moment.locale(i18n.locale);
|
||||
|
||||
export default i18n;
|
||||
Reference in New Issue
Block a user