Skip to content

feat: create with vue-i18n #548

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

Closed
wants to merge 30 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0709a51
feat: create with vue-i18n
Procrustes5 Aug 2, 2024
807f730
chore(test): add tests
Procrustes5 Aug 2, 2024
4da6366
Update pnpm-lock.yaml
Procrustes5 Aug 2, 2024
007c98b
fix(ci): add generated files
Procrustes5 Aug 2, 2024
a8764b5
fix(ci): set entrypoints ts
Procrustes5 Aug 2, 2024
cd6b00f
Revert "fix(ci): add generated files"
Procrustes5 Aug 5, 2024
3c8210b
fix: change index.js like vue-i18n document
Procrustes5 Aug 5, 2024
047817d
Merge branch 'main' into feat/create-with-i18n
Procrustes5 Aug 5, 2024
f4b7e2f
chore: pnpm-lock.yaml
Procrustes5 Aug 5, 2024
afd0352
Merge branch 'feat/create-with-i18n' of https://github.com/Procrustes…
Procrustes5 Aug 5, 2024
aebef03
Update pnpm-lock.yaml
Procrustes5 Aug 5, 2024
b2c996a
feat: add flags to snapshot
Procrustes5 Aug 12, 2024
e5c6f33
Merge branch 'main' into feat/create-with-i18n
Procrustes5 Aug 12, 2024
a44a4e8
fix: remove template/tsconfig/vue-i18n
Procrustes5 Aug 12, 2024
3acbe52
Merge branch 'feat/create-with-i18n' of https://github.com/Procrustes…
Procrustes5 Aug 12, 2024
8f7ccff
chore: fix package.json
Procrustes5 Aug 12, 2024
0d4a933
chore: pull main
Procrustes5 Aug 12, 2024
b3fa7e0
feat: add ts files
Procrustes5 Aug 16, 2024
d098768
fix: cd.yml
Procrustes5 Aug 16, 2024
d51fd03
Merge branch 'main' into feat/create-with-i18n
Procrustes5 Aug 16, 2024
cf5d71e
chore: export i18n
Procrustes5 Aug 16, 2024
cd0b81a
Merge branch 'feat/create-with-i18n' of https://github.com/Procrustes…
Procrustes5 Aug 16, 2024
3a83d52
feat: add views
Procrustes5 Aug 16, 2024
17fb167
chore: typo
Procrustes5 Aug 16, 2024
c7922a6
chore: delete i18n on matrix
Procrustes5 Aug 16, 2024
026cd9e
chore: avoid lint error
Procrustes5 Aug 16, 2024
884b9dd
chore: disable eslint
Procrustes5 Aug 16, 2024
ad66d81
chore: test
Procrustes5 Aug 16, 2024
a125bc7
chore: export i18n
Procrustes5 Aug 16, 2024
d2bf4f4
fix: delete duplicated files
Procrustes5 Aug 17, 2024
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
7 changes: 5 additions & 2 deletions scripts/snapshot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const featureFlags = [
'vitest',
'cypress',
'playwright',
'nightwatch'
'nightwatch',
'vue-i18n'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be removed from here because it's going to generate too many snapshots

]
const featureFlagsDenylist = [
['cypress', 'playwright'],
Expand Down Expand Up @@ -55,12 +56,14 @@ function fullCombination(arr) {

let flagCombinations = fullCombination(featureFlags)
flagCombinations.push(['default'], ['devtools', 'router', 'pinia'], ['eslint'], ['eslint-with-prettier'])
// vue-i18n flag combinations
flagCombinations.push(['vue-i18n'], ['vue-i18n', 'typescript'], ['vue-i18n', 'router', 'pinia'])

// `--with-tests` are equivalent of `--vitest --cypress`
// Previously it means `--cypress` without `--vitest`.
// Here we generate the snapshots only for the sake of easier comparison with older templates.
// They may be removed in later releases.
const withTestsFlags = fullCombination(['typescript', 'jsx', 'router', 'pinia']).map((args) => [
const withTestsFlags = fullCombination(['typescript', 'jsx', 'router', 'pinia', 'vue-i18n']).map((args) => [
...args,
'with-tests'
])
Expand Down