Skip to content
Snippets Groups Projects
Commit 65c6bb84 authored by Tom Robinson's avatar Tom Robinson
Browse files

Add support for jt i18n function for use in JSX

parent cc3d62fd
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"extract": { "extract": {
"output": "locales/metabase-frontend.pot" "output": "locales/metabase-frontend.pot"
}, },
"discover": ["t"] "discover": ["t", "jt"]
}] }]
] ]
} }
......
...@@ -4,8 +4,9 @@ import 'babel-polyfill'; ...@@ -4,8 +4,9 @@ import 'babel-polyfill';
import 'number-to-locale-string'; import 'number-to-locale-string';
// make the i18n function "t" global so we don't have to import it in basically every file // make the i18n function "t" global so we don't have to import it in basically every file
import { t } from "c-3po"; import { t, jt } from "c-3po";
global.t = t; global.t = t;
global.jt = jt;
// set the locale before loading anything else // set the locale before loading anything else
import { setLocalization } from "metabase/lib/i18n"; import { setLocalization } from "metabase/lib/i18n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment