-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: merging of locale files with the same name for `@intlify/unplug…
…in-vue-i18n/messages` (#274) * Fix merging of locale files with the same name * Replace lodash.merge with a plain JS implementation * Update README.md
- Loading branch information
1 parent
8e74926
commit 8d042fc
Showing
7 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
select: Do you want banana? | ||
fruits: | ||
banana: 'no bananas | {n} banana | {n} bananas' |
2 changes: 2 additions & 0 deletions
2
packages/unplugin-vue-i18n/examples/vite/src/locales/fruits/en.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fruits: | ||
banana: 'no bananas | {n} banana | {n} bananas' |
5 changes: 5 additions & 0 deletions
5
packages/unplugin-vue-i18n/examples/vite/src/locales/fruits/ja.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
fruits: { | ||
banana: 'バナナがない | バナナ {n} 個' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
select: "バナナが欲しい?", | ||
fruits: { | ||
banana: "バナナがない | バナナ {n} 個" | ||
} | ||
select: 'バナナが欲しい?' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters