Add singular/plural tip for translation
This commit is contained in:
parent
2ed67a7dd2
commit
26aef7c3fe
|
@ -26,10 +26,25 @@ There are 4 files:
|
||||||
|
|
||||||
## Tips
|
## Tips
|
||||||
|
|
||||||
|
### Special tags
|
||||||
|
|
||||||
You must not translate special tags like `<x id="INTERPOLATION" ... />`.
|
You must not translate special tags like `<x id="INTERPOLATION" ... />`.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views```
|
```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views```
|
||||||
|
|
||||||
should be in french
|
should be in french
|
||||||
```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues```
|
```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues```
|
||||||
|
|
||||||
|
|
||||||
|
### Singular/plural
|
||||||
|
|
||||||
|
For singular/plural translations, you must translate values inside `{` and `}`.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> videos} }```
|
||||||
|
|
||||||
|
should be in french
|
||||||
|
|
||||||
|
```{VAR_PLURAL, plural, =0 {Aucune vidéos} =1 {1 vidéo} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> vidéos} }```
|
||||||
|
|
Loading…
Reference in New Issue