aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/plugins/guide.md
diff options
context:
space:
mode:
Diffstat (limited to 'support/doc/plugins/guide.md')
-rw-r--r--support/doc/plugins/guide.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index 17c681afd..5b5a3065d 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -744,7 +744,7 @@ If you want to translate strings of your plugin (like labels of your registered
744{ 744{
745 ..., 745 ...,
746 "translations": { 746 "translations": {
747 "fr-FR": "./languages/fr.json", 747 "fr": "./languages/fr.json",
748 "pt-BR": "./languages/pt-BR.json" 748 "pt-BR": "./languages/pt-BR.json"
749 }, 749 },
750 ... 750 ...
@@ -752,7 +752,6 @@ If you want to translate strings of your plugin (like labels of your registered
752``` 752```
753 753
754The key should be one of the locales defined in [i18n.ts](https://github.com/Chocobozzz/PeerTube/blob/develop/shared/models/i18n/i18n.ts). 754The key should be one of the locales defined in [i18n.ts](https://github.com/Chocobozzz/PeerTube/blob/develop/shared/models/i18n/i18n.ts).
755You **must** use the complete locales (`fr-FR` instead of `fr`).
756 755
757Translation files are just objects, with the english sentence as the key and the translation as the value. 756Translation files are just objects, with the english sentence as the key and the translation as the value.
758`fr.json` could contain for example: 757`fr.json` could contain for example: