Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f5f6c5
commit 510c661
Showing
101 changed files
with
2,479 additions
and
1,929 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
**/dist/* | ||
**/test/**/actual.js | ||
**/test/**/expected.js | ||
**/locale/* |
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,4 @@ | ||
{ | ||
"semi": false, | ||
"parser": "flow" | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
packages/babel-plugin-lingui-extract-messages/test/fixtures/js/all.js
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
20 changes: 10 additions & 10 deletions
20
packages/babel-plugin-lingui-extract-messages/test/fixtures/jsx/all.js
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,15 +1,15 @@ | ||
import { Trans } from 'lingui-react'; | ||
import { Trans } from "lingui-react" | ||
|
||
<span id="ignore" />; | ||
<Trans />; // this should be ignored | ||
<Trans defaults="Missing ID"/>; // this should be ignored | ||
<Trans id="msg.hello" />; | ||
<Trans id="msg.default" defaults="Hello World" />; | ||
<Trans id="msg.default" defaults="Hello World" />; | ||
<Trans id="Hi, my name is <0>{name}</0>" values={{ count }} />; | ||
;<span id="ignore" /> | ||
;<Trans /> // this should be ignored | ||
;<Trans defaults="Missing ID" /> // this should be ignored | ||
;<Trans id="msg.hello" /> | ||
;<Trans id="msg.default" defaults="Hello World" /> | ||
;<Trans id="msg.default" defaults="Hello World" /> | ||
;<Trans id="Hi, my name is <0>{name}</0>" values={{ count }} /> | ||
i18n._("{count, plural, one {# book} other {# books}}", { | ||
values: { | ||
count: count | ||
} | ||
}); | ||
<Trans id={message} />; | ||
}) | ||
;<Trans id={message} /> |
12 changes: 6 additions & 6 deletions
12
packages/babel-plugin-lingui-extract-messages/test/fixtures/jsx/deep/all.js
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,7 +1,7 @@ | ||
import { Trans } from 'lingui-react'; | ||
import { Trans } from "lingui-react" | ||
|
||
<span id="ignore" />; | ||
<Trans id="msg.hello" />; | ||
<Trans id="msg.default" defaults="Hello World" />; | ||
<Trans id="msg.default" defaults="Hello World" />; | ||
<Trans id="Hi, my name is <0>{name}</0>" />; | ||
;<span id="ignore" /> | ||
;<Trans id="msg.hello" /> | ||
;<Trans id="msg.default" defaults="Hello World" /> | ||
;<Trans id="msg.default" defaults="Hello World" /> | ||
;<Trans id="Hi, my name is <0>{name}</0>" /> |
Oops, something went wrong.