diff --git a/.gitignore b/.gitignore index 72aa169..e60d033 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json +!.vscode/i18n-ally-custom-framework.yml *.code-workspace # Local History for Visual Studio Code diff --git a/.vscode/extensions.json b/.vscode/extensions.json index ff8ad2b..1c8e087 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,7 +2,10 @@ "recommendations": [ "2gua.rainbow-brackets", "christian-kohler.npm-intellisense", - "remimarsal.prettier-now" + "remimarsal.prettier-now", + "lokalise.i18n-ally", ], - "unwantedRecommendations": [] + "unwantedRecommendations": [ + "antfu.i18n-ally" + ] } \ No newline at end of file diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml new file mode 100644 index 0000000..98246d6 --- /dev/null +++ b/.vscode/i18n-ally-custom-framework.yml @@ -0,0 +1,8 @@ +languageIds: + - javascript + - html +keyMatchReg: + - '\{\{__ "([a-zA-Z0-9_]+)"\}\}' +monopoly: false +refactorTemplates: + - '{{__ "$1"}}' \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index fd68d0b..8ab8b79 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,7 +5,6 @@ "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, - "prettier.enable": false, "[typescript]": { "editor.defaultFormatter": "vscode.typescript-language-features", "editor.codeActionsOnSave": { @@ -16,5 +15,10 @@ "javascript.preferences.quoteStyle": "single", "javascript.preferences.importModuleSpecifierEnding": "minimal", "typescript.preferences.importModuleSpecifierEnding": "minimal", - "typescript.preferences.includePackageJsonAutoImports": "on" + "typescript.preferences.includePackageJsonAutoImports": "on", + "i18n-ally.localesPaths": "src/locales", + "i18n-ally.keystyle": "nested", + "i18n-ally.extract.keygenStrategy":"slug", + "i18n-ally.enabledFrameworks": ["custom"] + } \ No newline at end of file