Skip to content

fix: Modified to run vue-i18n #2

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

Merged
merged 1 commit into from
Jul 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,288 changes: 519 additions & 4,769 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"private": false,
"author": "Alireza Safari <[email protected]> (http://alireza-safari.ir)",
"license": "MIT",
"module": "./dist/vcp.es.ts",
"module": "./dist/vcp.es.js",
"description": "Frontend printing dynamic data made easy!",
"exports": {
".": {
"import": "./dist/vcp.es.ts"
"import": "./dist/vcp.es.js"
},
"./dist/style.css": "./dist/style.css"
},
Expand Down
242 changes: 0 additions & 242 deletions src/assets/translations.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/TemplateBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@
// @ts-ignore
import { ISettings } from '~/interfaces/general.ts'
// @ts-ignore
import { fetchLangList } from '~/assets/translations.ts'
import { fetchLangList } from '~/translations.ts'
import { saveAs } from 'file-saver'
export default {
name: "TemplateBuilder",
Expand Down
4 changes: 2 additions & 2 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import componentRegisterer from './plugins/components.ts'
// @ts-ignore
import mixins from './plugins/mixins.ts'
// @ts-ignore
// import i18n from './plugins/i18n.ts'
import i18n from './plugins/i18n.ts'

const _encode2Base64 = mixins.methods.encode2Base64
const _decodeFromBase64 = mixins.methods.decodeFromBase64
Expand All @@ -17,6 +17,6 @@ export default {
install: (app: any, options: any): void => {
app.mixin(mixins)
componentRegisterer(app)
// app.use(i18n)
app.use(i18n)
}
}
Loading