1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-02 08:00:03 +00:00
bramw_baserow/web-frontend/modules/core/plugins/i18n.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
294 B
JavaScript
Raw Normal View History

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