Skip to content

bug: i18n-ally extension config regex not catches translation key started from new line #247

@rodmax

Description

@rodmax

Actual behavior

Current version of regex in .vscode/i18n-ally-custom-framework.yml not catches use case:

t(
    'keyStartedFromNewLineAfterTranslateFunction'
)

Fixed regex

usageMatchRegex:
  - "[^\\w\\d]t\\([\\s\\n]*?[']({key})[']"
  - "[^\\w\\d]_\\([\\s\\n]*?[']({key})[']"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions