Skip to content

Commit 7f7210e

Browse files
committed
replace rollup with tsup to fix output issues
1 parent 873e749 commit 7f7210e

13 files changed

+1614
-590
lines changed

dev/gettext.d.ts

+4-34
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,9 @@
11
export {};
22
declare module "@vue/runtime-core" {
33
interface ComponentCustomProperties {
4-
__: (
5-
msgid: string,
6-
parameters?: {
7-
[key: string]: string;
8-
},
9-
disableHtmlEscaping?: boolean,
10-
) => string;
11-
_x: (
12-
context: string,
13-
msgid: string,
14-
parameters?: {
15-
[key: string]: string;
16-
},
17-
disableHtmlEscaping?: boolean,
18-
) => string;
19-
_n: (
20-
msgid: string,
21-
plural: string,
22-
n: number,
23-
parameters?: {
24-
[key: string]: string;
25-
},
26-
disableHtmlEscaping?: boolean,
27-
) => string;
28-
_xn: (
29-
context: string,
30-
msgid: string,
31-
plural: string,
32-
n: number,
33-
parameters?: {
34-
[key: string]: string;
35-
},
36-
disableHtmlEscaping?: boolean,
37-
) => string;
4+
__: ComponentCustomProperties["$gettext"];
5+
_x: ComponentCustomProperties["$pgettext"];
6+
_n: ComponentCustomProperties["$ngettext"];
7+
_xn: ComponentCustomProperties["$npgettext"];
388
}
399
}

dev/language/en_GB/app.po

+22-24
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgstr ""
1010
"Generated-By: easygettext\n"
1111
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1212

13-
#: dev/components/DemoPlural.vue:28
13+
#: dev/components/DemoPlural.vue:18
1414
msgid "%{ countForUntranslated } item. This is left untranslated on purpose."
1515
msgid_plural ""
1616
"%{ countForUntranslated } items. This is left untranslated on purpose."
@@ -19,7 +19,7 @@ msgstr[0] ""
1919
msgstr[1] ""
2020
"%{ countForUntranslated } items. This is left untranslated on purpose."
2121

22-
#: dev/components/DemoPlural.vue:13
22+
#: dev/components/DemoPlural.vue:12
2323
msgid "%{ n } book"
2424
msgid_plural "%{ n } books"
2525
msgstr[0] "%{ n } book"
@@ -32,12 +32,6 @@ msgid_plural "%{ n } cars"
3232
msgstr[0] "%{ n } book"
3333
msgstr[1] "%{ n } books"
3434

35-
#: dev/components/DemoPlural.vue:17
36-
msgid "%{ nComputed } book"
37-
msgid_plural "%{ nComputed } books"
38-
msgstr[0] "%{ nComputed } book"
39-
msgstr[1] "%{ nComputed } books"
40-
4135
#: dev/components/DemoDirective.vue:15
4236
msgid "<strong>%{ count }</strong> apple"
4337
msgid_plural "<strong>%{ count }</strong> apples"
@@ -81,15 +75,15 @@ msgstr "Headline 4"
8175
msgid "Hello <strong>%{ name }</strong>"
8276
msgstr "Hello <strong>%{ name }</strong>"
8377

84-
#: dev/components/DemoTemplate.vue:22
78+
#: dev/components/DemoTemplate.vue:11
8579
msgid "hover here and see the title"
8680
msgstr ""
8781

8882
#: dev/components/DemoPlural.vue:4
8983
msgid "In English, '0' (zero) is always plural."
9084
msgstr "In English, '0' (zero) is always plural."
9185

92-
#: dev/components/DemoTemplate.vue:18
86+
#: dev/components/DemoTemplate.vue:7
9387
msgid "One apple"
9488
msgid_plural "%{n} apples"
9589
msgstr[0] ""
@@ -108,42 +102,46 @@ msgstr "Select your language:"
108102
msgid "This is %{ obj.name }"
109103
msgstr "This is %{ obj.name }"
110104

111-
#: dev/components/DemoTemplate.vue:15
105+
#: dev/components/DemoTemplate.vue:4
112106
msgid "use `__` as a alias of gettext"
113107
msgstr ""
114108

115-
#: dev/components/DemoTemplate.vue:17
109+
#: dev/components/DemoTemplate.vue:6
116110
msgid "use `_n` as a alias of ngettext"
117111
msgstr ""
118112

119-
#: dev/components/DemoTemplate.vue:21
113+
#: dev/components/DemoTemplate.vue:10
120114
msgid "use `_x` as a alias of pgettext"
121115
msgstr ""
122116

123-
#: dev/components/DemoTemplate.vue:25
117+
#: dev/components/DemoTemplate.vue:14
124118
msgid "use `_xn` as a alias of npgettext"
125119
msgstr ""
126120

127-
#: dev/components/DemoPlural.vue:23
128-
msgid ""
129-
"Use default singular or plural form when there is no translation. This is "
130-
"left untranslated on purpose."
131-
msgstr ""
132-
"Use default singular or plural form when there is no translation. This is "
133-
"left untranslated on purpose."
134-
135121
#: dev/components/DemoIf.vue:5
136122
msgid "Welcome %{ name }"
137123
msgstr "Welcome %{ name }"
138124

139-
#: dev/components/DemoTemplate.vue:26
125+
#: dev/components/DemoTemplate.vue:15
140126
msgctxt "list-item"
141127
msgid "one message"
142128
msgid_plural "%{n} messages"
143129
msgstr[0] ""
144130
msgstr[1] ""
145131

146-
#: dev/components/DemoTemplate.vue:20
132+
#: dev/components/DemoTemplate.vue:9
147133
msgctxt "title"
148134
msgid "This is my title"
149135
msgstr ""
136+
137+
#~ msgid "%{ nComputed } book"
138+
#~ msgid_plural "%{ nComputed } books"
139+
#~ msgstr[0] "%{ nComputed } book"
140+
#~ msgstr[1] "%{ nComputed } books"
141+
142+
#~ msgid ""
143+
#~ "Use default singular or plural form when there is no translation. This is "
144+
#~ "left untranslated on purpose."
145+
#~ msgstr ""
146+
#~ "Use default singular or plural form when there is no translation. This is "
147+
#~ "left untranslated on purpose."

dev/language/fr_FR/app.po

+15-22
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
2020

21-
#: dev/components/DemoPlural.vue:28
21+
#: dev/components/DemoPlural.vue:18
2222
msgid "%{ countForUntranslated } item. This is left untranslated on purpose."
2323
msgid_plural ""
2424
"%{ countForUntranslated } items. This is left untranslated on purpose."
2525
msgstr[0] ""
2626
msgstr[1] ""
2727

28-
#: dev/components/DemoPlural.vue:13
28+
#: dev/components/DemoPlural.vue:12
2929
msgid "%{ n } book"
3030
msgid_plural "%{ n } books"
3131
msgstr[0] "%{ n } livre"
@@ -37,12 +37,6 @@ msgid_plural "%{ n } cars"
3737
msgstr[0] "%{ n } voiture"
3838
msgstr[1] "%{ n } voitures"
3939

40-
#: dev/components/DemoPlural.vue:17
41-
msgid "%{ nComputed } book"
42-
msgid_plural "%{ nComputed } books"
43-
msgstr[0] "%{ nComputed } livre"
44-
msgstr[1] "%{ nComputed } livres"
45-
4640
#: dev/components/DemoDirective.vue:15
4741
msgid "<strong>%{ count }</strong> apple"
4842
msgid_plural "<strong>%{ count }</strong> apples"
@@ -86,15 +80,15 @@ msgstr "Titre 4"
8680
msgid "Hello <strong>%{ name }</strong>"
8781
msgstr "Bonjour <strong>%{ name }</strong>"
8882

89-
#: dev/components/DemoTemplate.vue:22
83+
#: dev/components/DemoTemplate.vue:11
9084
msgid "hover here and see the title"
9185
msgstr ""
9286

9387
#: dev/components/DemoPlural.vue:4
9488
msgid "In English, '0' (zero) is always plural."
9589
msgstr "En anglais, '0' (zero) prend toujours le pluriel."
9690

97-
#: dev/components/DemoTemplate.vue:18
91+
#: dev/components/DemoTemplate.vue:7
9892
msgid "One apple"
9993
msgid_plural "%{n} apples"
10094
msgstr[0] ""
@@ -113,40 +107,39 @@ msgstr "Sélectionner votre langage"
113107
msgid "This is %{ obj.name }"
114108
msgstr "C'est %{ obj.name }"
115109

116-
#: dev/components/DemoTemplate.vue:15
110+
#: dev/components/DemoTemplate.vue:4
117111
msgid "use `__` as a alias of gettext"
118112
msgstr ""
119113

120-
#: dev/components/DemoTemplate.vue:17
114+
#: dev/components/DemoTemplate.vue:6
121115
msgid "use `_n` as a alias of ngettext"
122116
msgstr ""
123117

124-
#: dev/components/DemoTemplate.vue:21
118+
#: dev/components/DemoTemplate.vue:10
125119
msgid "use `_x` as a alias of pgettext"
126120
msgstr ""
127121

128-
#: dev/components/DemoTemplate.vue:25
122+
#: dev/components/DemoTemplate.vue:14
129123
msgid "use `_xn` as a alias of npgettext"
130124
msgstr ""
131125

132-
#: dev/components/DemoPlural.vue:23
133-
msgid ""
134-
"Use default singular or plural form when there is no translation. This is "
135-
"left untranslated on purpose."
136-
msgstr ""
137-
138126
#: dev/components/DemoIf.vue:5
139127
msgid "Welcome %{ name }"
140128
msgstr "Bienvenue %{ name }"
141129

142-
#: dev/components/DemoTemplate.vue:26
130+
#: dev/components/DemoTemplate.vue:15
143131
msgctxt "list-item"
144132
msgid "one message"
145133
msgid_plural "%{n} messages"
146134
msgstr[0] ""
147135
msgstr[1] ""
148136

149-
#: dev/components/DemoTemplate.vue:20
137+
#: dev/components/DemoTemplate.vue:9
150138
msgctxt "title"
151139
msgid "This is my title"
152140
msgstr ""
141+
142+
#~ msgid "%{ nComputed } book"
143+
#~ msgid_plural "%{ nComputed } books"
144+
#~ msgstr[0] "%{ nComputed } livre"
145+
#~ msgstr[1] "%{ nComputed } livres"

dev/language/it_IT/app.po

+15-22
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2020

21-
#: dev/components/DemoPlural.vue:28
21+
#: dev/components/DemoPlural.vue:18
2222
msgid "%{ countForUntranslated } item. This is left untranslated on purpose."
2323
msgid_plural ""
2424
"%{ countForUntranslated } items. This is left untranslated on purpose."
2525
msgstr[0] ""
2626
msgstr[1] ""
2727

28-
#: dev/components/DemoPlural.vue:13
28+
#: dev/components/DemoPlural.vue:12
2929
msgid "%{ n } book"
3030
msgid_plural "%{ n } books"
3131
msgstr[0] "%{ n } libbra"
@@ -37,12 +37,6 @@ msgid_plural "%{ n } cars"
3737
msgstr[0] "%{ n } auto"
3838
msgstr[1] "%{ n } auto"
3939

40-
#: dev/components/DemoPlural.vue:17
41-
msgid "%{ nComputed } book"
42-
msgid_plural "%{ nComputed } books"
43-
msgstr[0] "%{ nComputed } libbra"
44-
msgstr[1] "%{ nComputed } libri"
45-
4640
#: dev/components/DemoDirective.vue:15
4741
msgid "<strong>%{ count }</strong> apple"
4842
msgid_plural "<strong>%{ count }</strong> apples"
@@ -86,15 +80,15 @@ msgstr "Titolo 4"
8680
msgid "Hello <strong>%{ name }</strong>"
8781
msgstr "Buongiorno <strong>%{ name }</strong>"
8882

89-
#: dev/components/DemoTemplate.vue:22
83+
#: dev/components/DemoTemplate.vue:11
9084
msgid "hover here and see the title"
9185
msgstr ""
9286

9387
#: dev/components/DemoPlural.vue:4
9488
msgid "In English, '0' (zero) is always plural."
9589
msgstr "In inglese, '0' (zero) è sempre al plurale."
9690

97-
#: dev/components/DemoTemplate.vue:18
91+
#: dev/components/DemoTemplate.vue:7
9892
msgid "One apple"
9993
msgid_plural "%{n} apples"
10094
msgstr[0] ""
@@ -113,40 +107,39 @@ msgstr "Seleziona la tua lingua:"
113107
msgid "This is %{ obj.name }"
114108
msgstr "Questo è %{ obj.name }"
115109

116-
#: dev/components/DemoTemplate.vue:15
110+
#: dev/components/DemoTemplate.vue:4
117111
msgid "use `__` as a alias of gettext"
118112
msgstr ""
119113

120-
#: dev/components/DemoTemplate.vue:17
114+
#: dev/components/DemoTemplate.vue:6
121115
msgid "use `_n` as a alias of ngettext"
122116
msgstr ""
123117

124-
#: dev/components/DemoTemplate.vue:21
118+
#: dev/components/DemoTemplate.vue:10
125119
msgid "use `_x` as a alias of pgettext"
126120
msgstr ""
127121

128-
#: dev/components/DemoTemplate.vue:25
122+
#: dev/components/DemoTemplate.vue:14
129123
msgid "use `_xn` as a alias of npgettext"
130124
msgstr ""
131125

132-
#: dev/components/DemoPlural.vue:23
133-
msgid ""
134-
"Use default singular or plural form when there is no translation. This is "
135-
"left untranslated on purpose."
136-
msgstr ""
137-
138126
#: dev/components/DemoIf.vue:5
139127
msgid "Welcome %{ name }"
140128
msgstr "Benvenuto %{ name }"
141129

142-
#: dev/components/DemoTemplate.vue:26
130+
#: dev/components/DemoTemplate.vue:15
143131
msgctxt "list-item"
144132
msgid "one message"
145133
msgid_plural "%{n} messages"
146134
msgstr[0] ""
147135
msgstr[1] ""
148136

149-
#: dev/components/DemoTemplate.vue:20
137+
#: dev/components/DemoTemplate.vue:9
150138
msgctxt "title"
151139
msgid "This is my title"
152140
msgstr ""
141+
142+
#~ msgid "%{ nComputed } book"
143+
#~ msgid_plural "%{ nComputed } books"
144+
#~ msgstr[0] "%{ nComputed } libbra"
145+
#~ msgstr[1] "%{ nComputed } libri"

0 commit comments

Comments
 (0)