From d75db01f14138ea660c4c519e37ab05228b39d13 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Jul 2019 14:44:50 +0200 Subject: Add plugin translation system --- server/tests/fixtures/peertube-plugin-test-two/languages/fr.json | 3 +++ server/tests/fixtures/peertube-plugin-test-two/languages/it.json | 3 +++ server/tests/fixtures/peertube-plugin-test-two/package.json | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 server/tests/fixtures/peertube-plugin-test-two/languages/fr.json create mode 100644 server/tests/fixtures/peertube-plugin-test-two/languages/it.json (limited to 'server/tests/fixtures/peertube-plugin-test-two') diff --git a/server/tests/fixtures/peertube-plugin-test-two/languages/fr.json b/server/tests/fixtures/peertube-plugin-test-two/languages/fr.json new file mode 100644 index 000000000..52d8313df --- /dev/null +++ b/server/tests/fixtures/peertube-plugin-test-two/languages/fr.json @@ -0,0 +1,3 @@ +{ + "Hello world": "Bonjour le monde" +} diff --git a/server/tests/fixtures/peertube-plugin-test-two/languages/it.json b/server/tests/fixtures/peertube-plugin-test-two/languages/it.json new file mode 100644 index 000000000..9e187d83b --- /dev/null +++ b/server/tests/fixtures/peertube-plugin-test-two/languages/it.json @@ -0,0 +1,3 @@ +{ + "Hello world": "Ciao, mondo!" +} diff --git a/server/tests/fixtures/peertube-plugin-test-two/package.json b/server/tests/fixtures/peertube-plugin-test-two/package.json index 52ebb5ac1..926f2d69b 100644 --- a/server/tests/fixtures/peertube-plugin-test-two/package.json +++ b/server/tests/fixtures/peertube-plugin-test-two/package.json @@ -15,5 +15,9 @@ "library": "./main.js", "staticDirs": {}, "css": [], - "clientScripts": [] + "clientScripts": [], + "translations": { + "fr-FR": "./languages/fr.json", + "it-IT": "./languages/it.json" + } } -- cgit v1.2.3