Fix newpost and ready for new version

This commit is contained in:
Adolfo Reyna
2023-01-11 09:04:00 -05:00
parent ff6e695bee
commit 2f76402658
6 changed files with 60 additions and 24 deletions

View File

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