New post view + fix moment location
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user