Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Framework Request] i18n.js #691

Open
RobertSasak opened this issue Nov 11, 2021 · 3 comments
Open

[Framework Request] i18n.js #691

RobertSasak opened this issue Nov 11, 2021 · 3 comments

Comments

@RobertSasak
Copy link
Contributor

What framework do you want to have? Please provide links of its i18n solution/package.
https://github.com/fnando/i18n-js

Please provide some overall screenshots about how the i18n usage would be like

i18n.t("scope.key")
I18n.t("scope.key")

Please provide a minimal starter project
Starter is included in the #690

Additional context

# .vscode/i18n-ally-custom-framework.yml

# An array of strings which contain Language Ids defined by VS Code
# You can check avaliable language ids here: https://code.visualstudio.com/docs/languages/overview#_language-id
languageIds:
  - javascript
  - typescript
  - javascriptreact
  - typescriptreact

# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
# You should unescape RegEx strings in order to fit in the YAML file
# To help with this, you can use https://www.freeformatter.com/json-escape.html
usageMatchRegex:
  # The following example shows how to detect `t("your.i18n.keys")`
  # the `{key}` will be placed by a proper keypath matching regex,
  # you can ignore it and use your own matching rules as well
  #- "[^\\w\\d]t\\(['\"`]({key})['\"`]"
  - "(?:i18n|I18n)\\.t\\(\\s*['\"`]({key})['\"`]"

# An array of strings containing refactor templates.
# The "$1" will be replaced by the keypath specified.
# Optional: uncomment the following two lines to use

# refactorTemplates:
#  - i18n.get("$1")


# If set to true, only enables this custom framework (will disable all built-in frameworks)
monopoly: true
@stale
Copy link

stale bot commented Jan 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 10, 2022
@RobertSasak
Copy link
Contributor Author

Please, let me know if there is something I can do.

@stale stale bot removed the stale label Jan 10, 2022
@ghost
Copy link

ghost commented Nov 10, 2022

same it does not work at all. Neither detection of hard coded strings in VUE files neither the code i18n.t()

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

No branches or pull requests

1 participant