File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import url from 'url';
22
33import upath from 'upath' ;
44import { URL } from 'whatwg-url' ;
5- import jed from 'jed' ;
5+ import Jed from 'jed' ;
66import semver from 'semver' ;
77import { oneLine } from 'common-tags' ;
88
@@ -126,14 +126,15 @@ export function getVariable(context, name) {
126126 *
127127 */
128128export function gettext ( str ) {
129- return str ;
129+ const jed = new Jed ( { } ) ; // pass json localization data here
130+ return jed . gettext ( str ) ;
130131}
131132
132133/*
133134 * An sprintf to use with gettext. Imported from Jed for when we have a proper
134135 * l10n solution.
135136 */
136- export const { sprintf } = jed ;
137+ export const { sprintf } = Jed ;
137138
138139/*
139140 * Check the minimum node version is met
You can’t perform that action at this time.
0 commit comments