1. {
    2. "i18n-ally.enabledParsers": [
    3. "js"
    4. ],
    5. "i18n-ally.enabledFrameworks": [
    6. "vue"
    7. ],
    8. "i18n-ally.translate.engines": [
    9. "google-cn"
    10. ],
    11. "i18n-ally.namespace": true,
    12. "i18n-ally.ignoreFiles": [
    13. "index.js"
    14. ],
    15. "i18n-ally.localesPaths": [
    16. "src",
    17. "src/modules"
    18. ],
    19. "i18n-ally.pathMatcher": "{namespace?}/?i18n/{locale}.js",
    20. "i18n-ally.keystyle": "nested",
    21. "i18n-ally.sourceLanguage": "zh",
    22. }

    目录结构:

    1. | App.vue
    2. | main.js
    3. |
    4. +---assets
    5. | | icon.png
    6. | |
    7. +---i18n
    8. | en.js
    9. | index.js
    10. | zh.js
    11. +---modules
    12. | ---[modlueName]
    13. | +---api
    14. | | index.js
    15. | |
    16. | +---components
    17. | +---i18n
    18. | | en.js
    19. | | prompt.js
    20. | | zh.js
    21. | |
    22. | +---router
    23. | | index.js
    24. | |
    25. | +---store
    26. | | index.js
    27. | |
    28. | +---views