index.js 312 B

1234567891011121314151617181920212223242526
  1. import { createI18n } from "vue-i18n";
  2. import EN from "./en";
  3. import ZH from "./zh";
  4. import TH from "./th";
  5. const messages={
  6. zh:{
  7. ...ZH
  8. },
  9. en:{
  10. ...EN
  11. },
  12. th:{
  13. ...TH
  14. }
  15. }
  16. const i18n = createI18n({
  17. locale:'th',
  18. // locale:'zh',
  19. legacy:false,
  20. globalInjection:true,
  21. messages,
  22. })
  23. export default i18n;