-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] Internationalization VueCesium components #126
Labels
bug
Something isn't working
Comments
This is a bug and will be fixed in the next version.Thanks for the feedback. Currently you can use this solution to avoid this bug. // main.js
import { createApp } from 'vue'
import 'vue-cesium/dist/index.css'
+++ import { use } from 'vue-cesium/es/locale'
import enUS from 'vue-cesium/es/locale/lang/en-us'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
const app = createApp(App)
app.config.globalProperties.$VueCesium = {
cesiumPath:
process.env.NODE_ENV === 'production'
? `${process.env.VUE_APP_PUBLIC_PATH}Cesium/Cesium.js`
: '/Cesium/Cesium.js',
locale: enUS,
accessToken: process.env.VUE_APP_CESIUM_ACCESS_TOKEN
}
+++ use(enUS)
app.use(store)
app.use(router)
app.mount('#app') |
@spatialhast Choose one of two options: use
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VueCesium version
3.0.2-beta.4
OS/Browsers version
Windows 10 / Chrome 95.0.4638.69
Vue version
3.2.21
Cesium version
1.87.0
Reproduction Link
https://github.com/spatialhast/vue3-cesium
Steps to reproduce
What is Expected?
language English
What is actually happening?
language Chinese
The text was updated successfully, but these errors were encountered: