Skip to content

Commit

Permalink
fix(i18n): vue-i18n message issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Dec 16, 2024
1 parent 9ec1a89 commit 05e20df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/main/webapp/src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@
* limitations under the License.
*/

export { default as en } from './en'
export { default as fr } from './fr'
import en from './en'
import fr from './fr'

const messages = {
en,
fr,
}

export { en, fr, messages }
2 changes: 1 addition & 1 deletion src/main/webapp/src/plugins/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as messages from '@/locales'
import { messages } from '@/locales'
import { createI18n } from 'vue-i18n'

const config: {
Expand Down

0 comments on commit 05e20df

Please sign in to comment.