mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-02-07 14:19:18 +00:00
11 lines
294 B
JavaScript
11 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)
|
|
}
|
|
}
|