Files
baserow/web-frontend/modules/core/plugins/i18n.js
T

12 lines
294 B
JavaScript

import moment from '@baserow/modules/core/moment'
export default function ({ app }) {
// Set moment locale on load
moment.locale(app.i18n.locale)
app.i18n.onLanguageSwitched = (oldLocale, newLocale) => {
// Update moment locale on language switch
moment.locale(newLocale)
}
}