+function getPluginTranslations (req: express.Request, res: express.Response) {
+ const locale = req.params.locale
+
+ if (is18nLocale(locale)) {
+ const completeLocale = getCompleteLocale(locale)
+ const json = PluginManager.Instance.getTranslations(completeLocale)
+
+ return res.json(json)
+ }
+
+ return res.sendStatus(404)
+}
+