Last active
October 16, 2023 06:18
-
-
Save agfe2silver/8823596419299d4cf49c79deba380a9a to your computer and use it in GitHub Desktop.
i18n ally configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Parser options for extracting HTML, see https://github.com/lokalise/i18n-ally/blob/master/src/extraction/parsers/options.ts | |
"i18n-ally.extract.parsers.html": { | |
"attributes": ["text", "title", "alt", "placeholder", "label", "aria-label"], | |
"ignoredTags": ["script", "style"], | |
"vBind": true, | |
"inlineText": true | |
}, | |
// Enables hard-coded strings detection automatically whenever opening supported a file | |
"i18n-ally.extract.autoDetect": true, | |
"i18n-ally.refactor.templates": [ | |
{ | |
// affect scope (optional) | |
// see https://github.com/lokalise/i18n-ally/blob/master/src/core/types.ts#L156-L156 | |
"source": "html-attribute", | |
"templates": ["i18n.tc('{key}')", "i18n.tc('{key}'{args})",], | |
"include": ["packages/**/*.{vue,ts,js}", "projects/**/*.{vue,ts,js}", "index.html"], | |
"exclude": ["translationTool/**", "scripts/**", "**/samples/**", "**/prisma/**", "**/node_modules/**", "**/assets/**", "**/data/**", "**/test*/**", "**/sample/**", "**/dist/**", "**/__mocks__/*", "**/scripts/**", "**/_generated/**", "**/android/**", "**/ios/**", "**/backup/**"] | |
//"templates": ["i18n.t('{key}')", "i18n.tc('{key}'{args})",], | |
//"templates": ["i18n.t('{key}'{args})", "custom.t('{key}'{args})"], | |
// accept globs, resolved to project root (optional) | |
//"include": ["src/**/*.{vue,ts,js}", "index.html"], | |
//"exclude": ["src/config/**"] | |
} | |
], | |
"vscode-office.openOutline": true, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"editor.stickyScroll.enabled": true, | |
"i18n-ally.displayLanguage": "ko", | |
"i18n-ally.editor.preferEditor": true, | |
"i18n-ally.enabledFrameworks": [ | |
"vue" | |
], | |
"i18n-ally.extract.keygenStyle": "camelCase", | |
"i18n-ally.localesPaths": [ | |
"packages/bv/bv-i18n/src/locales" | |
], | |
"i18n-ally.translate.fallbackToKey": true, | |
"i18n-ally.translate.promptSource": true, | |
"i18n-ally.extract.ignoredByFiles": { | |
}, | |
"i18n-ally.usage.scanningIgnore": [ | |
"translationTool/**", | |
"scripts/**", | |
"**/backup/**" | |
], | |
"i18n-ally.pathMatcher": "{locale}.json", | |
"i18n-ally.sourceLanguage": "ko", | |
"i18n-ally.parsers.extendFileExtensions": { | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
refer with i18n configuration