You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -166,18 +175,36 @@ Infuse the meta of locale messages to i18n custom block at single-file component
166
175
167
176
`infuse` function will return new single-file components information that is updated with the single-file components information specified as `sources` and the meta of locale message as `meta`.
168
177
178
+
### status (options: TranslationStatusOptions): Promise<TranslationStatus[]>
179
+
180
+
***Arguments:**
181
+
* `{options}
182
+
*`provider`: The target localization service provider, required, same `provider` option of `status` command
183
+
*`conf`: The json file configration of localization service provider, same `conf` option of `status` command
184
+
*`locales`: For some locales of translation status, same `locales` option of `status` command
185
+
***Return:**`Promise<TranslationStatus[]>`
186
+
187
+
169
188
## :book: Provider: Specifications
170
189
171
190
You can use the `push` or `pull` commands to push the locale message to the localization service as a resource for that service, and also to pull resources from the l10n service as the locale message.
172
191
173
192
<palign="center"><imgsrc="./assets/push-pull-command-image.png"alt="Push and Pull Image"></p>
174
193
175
-
When you run `push`, `pull` and `diff` commands, you need the provider that implements the following.
194
+
When you run the following commands,
195
+
196
+
-`push`
197
+
-`pull`
198
+
-`diff`
199
+
-`status`
200
+
201
+
you need the provider that implements the following.
176
202
177
203
- export provider factory function
178
204
- provider factory function must return a provider object that have the following I/F:
179
205
-`push` method
180
206
-`pull` method
207
+
-`status` method
181
208
182
209
The type definition with TypeScript is as follows:
183
210
@@ -187,6 +214,14 @@ The type definition with TypeScript is as follows:
describe: 'the target localization service provider',
21
+
demandOption: true
22
+
})
23
+
.option('conf',{
24
+
type: 'string',
25
+
alias: 'c',
26
+
describe: 'the json file configration of localization service provider. If omitted, use the suffix file name with `-conf` for provider name of --provider (e.g. <provider>-conf.json).'
27
+
})
28
+
.option('locales',{
29
+
type: 'string',
30
+
alias: 'l',
31
+
default: '',
32
+
describe: `option for some locales of translation status, you can also be specified multi locale with comma delimiter. if it's not specified indicate all locale translation status`
0 commit comments