mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-24 16:36:46 +00:00
12 lines
294 B
JavaScript
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)
|
|
}
|
|
}
|