简体   繁体   中英

Meteor.js i18n package does not work when deployed with MUP (meteor-up)

A meteor app is using the tap-i18n ( https://github.com/TAPevents/tap-i18n/ ) and tap-i18n 's setLanguage function works on the development system. However when the app is deployed to the production server using mup , the tap-i18n package is installed but the language does not change when setLanguage is used.

On the deployed website, you can run TAPi18n.setLanguage('en') but the language does not change.

On their github page, it says that deploying needed additional steps. Could this be the problem? How should we adapt those steps to get it to work with a mup deployment or even the mup deploy process itself?

在新的Meteor包装系统中以tap:i18n形式提供的tap-i18n v1.0.0中,在部署时不再需要执行任何操作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM