File tree 5 files changed +707
-202
lines changed
examples/create-react-app
5 files changed +707
-202
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [
3
+ " next/babel"
4
+ ],
5
+ "plugins" : [" @lingui/babel-plugin-lingui-macro" ]
6
+ }
7
+
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
- "@lingui/core" : " ^4.1.2 " ,
7
- "@lingui/react" : " ^4.1.2 " ,
6
+ "@lingui/core" : " ^5.2.0 " ,
7
+ "@lingui/react" : " ^5.2.0 " ,
8
8
"react" : " ^18.2.0" ,
9
9
"react-dom" : " ^18.2.0"
10
10
},
32
32
]
33
33
},
34
34
"devDependencies" : {
35
- "@lingui/cli" : " ^4.11.2" ,
36
- "@lingui/loader" : " ^4.11.2" ,
35
+ "@lingui/babel-plugin-lingui-macro" : " ^5.2.0" ,
36
+ "@lingui/cli" : " ^5.2.0" ,
37
+ "@lingui/loader" : " ^5.2.0" ,
37
38
"@testing-library/jest-dom" : " ^5.16.5" ,
38
39
"@testing-library/react" : " ^14.0.0" ,
39
40
"@testing-library/user-event" : " ^14.4.3" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ msgstr "Příklad formátovače data:"
23
23
msgid "Decrement"
24
24
msgstr "Úbytek"
25
25
26
+ #. placeholder {0}: i18n.number(1_000_000, { style: "currency", currency: "EUR" })
26
27
#: src/App.tsx:59
27
28
msgid "I have a balance of {0}"
28
29
msgstr "Mám zůstatek {0}"
@@ -43,6 +44,7 @@ msgstr "Příklad formátovače čísel:"
43
44
msgid "Plurals example: "
44
45
msgstr "Příklad množného čísla: "
45
46
47
+ #. placeholder {0}: i18n.date(new Date(), {})
46
48
#: src/App.tsx:53
47
49
msgid "Today is {0}"
48
50
msgstr "Dnes je {0}"
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ msgstr "Date formatter example:"
25
25
msgid "Decrement"
26
26
msgstr "Decrement"
27
27
28
+ #. placeholder {0}: i18n.number(1_000_000, { style: "currency", currency: "EUR" })
28
29
#: src/App.tsx:59
29
30
msgid "I have a balance of {0}"
30
31
msgstr "I have a balance of {0}"
@@ -45,6 +46,7 @@ msgstr "Number formatter example:"
45
46
msgid "Plurals example: "
46
47
msgstr "Plurals example: "
47
48
49
+ #. placeholder {0}: i18n.date(new Date(), {})
48
50
#: src/App.tsx:53
49
51
msgid "Today is {0}"
50
52
msgstr "Today is {0}"
You can’t perform that action at this time.
0 commit comments