Skip to content

Commit a8457b5

Browse files
authored
Merge ea2165d into 6fd25cc
2 parents 6fd25cc + ea2165d commit a8457b5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/utils.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import url from 'url';
22

33
import upath from 'upath';
44
import { URL } from 'whatwg-url';
5-
import jed from 'jed';
5+
import Jed from 'jed';
66
import semver from 'semver';
77
import { oneLine } from 'common-tags';
88

@@ -126,14 +126,15 @@ export function getVariable(context, name) {
126126
*
127127
*/
128128
export 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

0 commit comments

Comments
 (0)