New post view + fix moment location

This commit is contained in:
Adolfo Reyna
2022-12-22 23:06:21 -05:00
parent 3d50977520
commit 1c0dbbbe84
7 changed files with 156 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
//import { getLocales } from 'expo-localization';
import { I18n } from 'i18n-js';
import Moment from 'moment';
import 'moment/min/locales.min';
import moment from 'moment'
import 'moment/min/locales'
const messages = {
en: {
@@ -129,6 +129,6 @@ const i18n = new I18n(messages);
// Set the locale once at the beginning of your app.
i18n.locale = 'es';//getLocales()[0].languageCode;
Moment.updateLocale(i18n.locale);
moment.locale(i18n.locale);
export default i18n;