Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pekonchan committed Jul 3, 2023
1 parent 92e08ff commit 3197e90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,15 @@ module.exports = {

## 特殊情况

### 个别不需要国际化
当代码中某些词条是不需要国际化的,那么可以在词条前添加行内块状注释的形式,单独指明该词条不需要国际化,如:
```
const word = /*no-i18n-auto*/ '你好';
new Error(/*no-i18n-auto*/ '报错了');
```

### 代码中仍需写转换函数时
当你有不得不需要在代码中直接使用国际化转换函数的时候,你仍然可以放心大胆使用。例如
```
// i18n.tc是国际化转换函数
Expand Down

0 comments on commit 3197e90

Please sign in to comment.