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

feat(i18n): localize support to provide dynamic replace text #186

Merged
merged 2 commits into from
Jun 21, 2021
Merged

Conversation

mortalYoung
Copy link
Collaborator

简介

主要变更

  • localize 通过国际化的 service 拿到 value 值后,通过判断 args 的长度来进行替换
  • 新增 localize 方法的注释
  • 目前替换匹配的字符串为 '${i}

@wewoor wewoor merged commit ad1bbc1 into main Jun 21, 2021
@wewoor wewoor deleted the feat/i18n branch June 21, 2021 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants