@lingui/extractor-vue 5.0.0-next.3 → 5.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -31
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,41 +2,15 @@
|
|
|
2
2
|
[![Version][badge-version]][package]
|
|
3
3
|
[![Downloads][badge-downloads]][package]
|
|
4
4
|
|
|
5
|
-
# @lingui/vue
|
|
5
|
+
# @lingui/extractor-vue
|
|
6
6
|
|
|
7
|
-
This package contains a custom extractor that handles Vue.js files. It supports extracting messages from script and setup scripts as well as Vue templates.
|
|
7
|
+
> This package contains a custom extractor that handles Vue.js files. It supports extracting messages from script and setup scripts as well as Vue templates.
|
|
8
8
|
|
|
9
|
-
`@lingui/vue
|
|
9
|
+
`@lingui/extractor-vue` is part of [LinguiJS][linguijs]. See the [documentation][documentation] for all information, tutorials and examples.
|
|
10
10
|
|
|
11
|
-
## Installation
|
|
11
|
+
## Installation & Usage
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
npm install --save-dev @lingui/extractor-vue
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
This custom extractor requires that you use JavaScript or TypeScript for your Lingui configuration.
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
import { vueExtractor } from "@lingui/extractor-vue"
|
|
23
|
-
import { extractor as defaultExtractor } from "@lingui/cli/api"
|
|
24
|
-
|
|
25
|
-
/** @type {import('@lingui/conf').LinguiConfig} */
|
|
26
|
-
const linguiConfig = {
|
|
27
|
-
locales: ["en", "nb"],
|
|
28
|
-
sourceLocale: "en",
|
|
29
|
-
catalogs: [
|
|
30
|
-
{
|
|
31
|
-
path: "<rootDir>/src/{locale}",
|
|
32
|
-
include: ["<rootDir>/src"],
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
extractors: [defaultExtractor, vueExtractor],
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default linguiConfig
|
|
39
|
-
```
|
|
13
|
+
See the [reference][reference] documentation.
|
|
40
14
|
|
|
41
15
|
## License
|
|
42
16
|
|
|
@@ -45,6 +19,7 @@ This package is licensed under [MIT][license] license.
|
|
|
45
19
|
[license]: https://github.com/lingui/js-lingui/blob/main/LICENSE
|
|
46
20
|
[linguijs]: https://github.com/lingui/js-lingui
|
|
47
21
|
[documentation]: https://lingui.dev/ref/extractor-vue
|
|
22
|
+
[reference]: https://lingui.dev/ref/extractor-vue
|
|
48
23
|
[package]: https://www.npmjs.com/package/@lingui/extractor-vue
|
|
49
24
|
[badge-downloads]: https://img.shields.io/npm/dw/@lingui/extractor-vue.svg
|
|
50
25
|
[badge-version]: https://img.shields.io/npm/v/@lingui/extractor-vue.svg
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/extractor-vue",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.4",
|
|
4
4
|
"description": "Custom Vue.js extractor to be used with the CLI tool",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"/dist"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@lingui/cli": "^5.0.0-next.
|
|
42
|
-
"@lingui/conf": "^5.0.0-next.
|
|
41
|
+
"@lingui/cli": "^5.0.0-next.4",
|
|
42
|
+
"@lingui/conf": "^5.0.0-next.4",
|
|
43
43
|
"@vue/compiler-sfc": "^3.2.47"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@lingui/babel-plugin-extract-messages": "^5.0.0-next.
|
|
46
|
+
"@lingui/babel-plugin-extract-messages": "^5.0.0-next.4",
|
|
47
47
|
"unbuild": "2.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "7b9ca5b479be4acd58ed95bff841e89efba06279"
|
|
50
50
|
}
|