From 2cfa08abe302cd679728b9110c79634158bce796 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 20 Sep 2020 16:42:33 -0600 Subject: [PATCH] Allow fastify.i18n to be used outside of i18n routes --- server/i18n/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/i18n/index.js b/server/i18n/index.js index 8313de6..745e541 100644 --- a/server/i18n/index.js +++ b/server/i18n/index.js @@ -47,4 +47,4 @@ async function plugin (fastify, opts, done) { done(); } -module.exports = plugin; \ No newline at end of file +module.exports = fp(plugin); \ No newline at end of file