Skip to content

Instantly share code, notes, and snippets.

@agfe2silver
Last active October 16, 2023 06:18
Show Gist options
  • Save agfe2silver/8823596419299d4cf49c79deba380a9a to your computer and use it in GitHub Desktop.
Save agfe2silver/8823596419299d4cf49c79deba380a9a to your computer and use it in GitHub Desktop.
i18n ally configuration
{
// 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": {
},
}
@agfe2silver
Copy link
Author

refer with i18n configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment