4.10.1 • Published 6 days ago
@lingui/extractor-vue v4.10.1
@lingui/vue-extractor
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.
@lingui/vue-extractor
is part of LinguiJS. See the documentation for all information, tutorials and examples.
Installation
npm install --save-dev @lingui/extractor-vue
Usage
This custom extractor requires that you use JavaScript or TypeScript for your Lingui configuration.
import { vueExtractor } from "@lingui/extractor-vue"
import { extractor as defaultExtractor } from "@lingui/cli/api"
/** @type {import('@lingui/conf').LinguiConfig} */
const linguiConfig = {
locales: ["en", "nb"],
sourceLocale: "en",
catalogs: [
{
path: "<rootDir>/src/{locale}",
include: ["<rootDir>/src"],
},
],
extractors: [defaultExtractor, vueExtractor],
}
export default linguiConfig
License
This package is licensed under MIT license.
4.10.1
6 days ago
4.10.0
27 days ago
4.8.0
1 month ago
4.7.2
1 month ago
4.8.0-next.1
2 months ago
4.8.0-next.0
2 months ago
4.7.1
3 months ago
4.7.0
4 months ago
4.5.0
8 months ago
4.4.1
8 months ago
4.4.0
9 months ago
4.6.0
5 months ago
4.4.2
8 months ago
4.3.0
10 months ago
4.1.0
12 months ago
4.2.1
11 months ago
4.1.2
12 months ago
4.2.0
12 months ago
4.1.1
12 months ago
4.0.0
1 year ago
4.0.0-next.8
1 year ago
4.0.0-next.7
1 year ago