1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/core/plugins/i18n.js

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)
}
}