-
Notifications
You must be signed in to change notification settings - Fork 445
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
feat: create with vue-i18n #548
Changes from 5 commits
0709a51
807f730
4da6366
007c98b
a8764b5
cd6b00f
3c8210b
047817d
f4b7e2f
afd0352
aebef03
b2c996a
e5c6f33
a44a4e8
3acbe52
8f7ccff
0d4a933
b3fa7e0
d098768
d51fd03
cf5d71e
cd0b81a
3a83d52
17fb167
c7922a6
026cd9e
884b9dd
ad66d81
a125bc7
d2bf4f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"vue": "^3.4.34", | ||
"vue-i18n": "^9.2.2" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { createI18n } from 'vue-i18n' | ||
|
||
const messages = { | ||
en: { | ||
// English Transtlations | ||
} | ||
} | ||
|
||
export default createI18n({ | ||
legacy: false, | ||
globalInjection: true, | ||
locale: 'en', | ||
fallbackLocale: 'en', | ||
messages | ||
}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, when used in TS, there are additional informations that should be added to have a proper typechecking: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thnink this is the default value, so the line can be removed