2023-06-22 14:23:00 +00:00
|
|
|
import path from 'path'
|
|
|
|
|
|
|
|
import en from './locales/en.json'
|
|
|
|
import fr from './locales/fr.json'
|
|
|
|
import nl from './locales/nl.json'
|
|
|
|
import de from './locales/de.json'
|
|
|
|
import it from './locales/it.json'
|
|
|
|
import es from './locales/es.json'
|
|
|
|
import pl from './locales/pl.json'
|
2024-11-26 16:53:07 +00:00
|
|
|
import ko from './locales/ko.json'
|
2023-06-22 14:23:00 +00:00
|
|
|
|
2023-12-20 08:22:02 +00:00
|
|
|
export default function IntegrationModule(options) {
|
2023-06-22 14:23:00 +00:00
|
|
|
// Add the plugin to register the builder application.
|
|
|
|
this.appendPlugin({
|
|
|
|
src: path.resolve(__dirname, 'plugin.js'),
|
|
|
|
})
|
|
|
|
|
|
|
|
this.nuxt.hook('i18n:extend-messages', function (additionalMessages) {
|
2024-11-26 16:53:07 +00:00
|
|
|
additionalMessages.push({ en, fr, nl, de, it, es, pl, ko })
|
2023-06-22 14:23:00 +00:00
|
|
|
})
|
|
|
|
}
|