Skip to content

Commit

Permalink
Merge pull request #246 from cmux/0.13
Browse files Browse the repository at this point in the history
minor fix for i18n
  • Loading branch information
Diablohu authored Apr 20, 2020
2 parents 642b919 + 8d7cd00 commit 0628556
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## [Unreleased]

## [0.13.19] - 2020-04-20

**koot**

- 错误修正
- SSR 多语言渲染不正确的一处问题

## [0.13.18] - 2020-04-17

**koot**
Expand Down
2 changes: 1 addition & 1 deletion packages/koot/i18n/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const doCorrect = () => {
// }

if (isSSRCorrected && __SERVER__) return;
if (!isSSRCorrected && __SERVER__) {
if (!isSSRCorrected && __SERVER__ && getSSRContext().LocaleId) {
resetLocaleId();
resetL();
isSSRCorrected = true;
Expand Down
2 changes: 1 addition & 1 deletion test/projects/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"private": true,
"sideEffects": false,
"koot": {
"version": "0.13.17"
"version": "0.13.18"
},
"devDependencies": {
"@types/inquirer": "^6.5.0",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"private": true,
"sideEffects": false,
"koot": {
"version": "0.13.17"
"version": "0.13.18"
},
"devDependencies": {
"@types/inquirer": "^6.5.0",
Expand Down

0 comments on commit 0628556

Please sign in to comment.