We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7eec51 commit 0196f8aCopy full SHA for 0196f8a
src/translator.js
@@ -3,7 +3,6 @@ export default class Translator {
3
this.dictionary = {};
4
this.plurals = {};
5
this.domain = undefined;
6
- this.vsprintf = undefined;
7
8
if (translations) {
9
this.loadTranslations(translations);
@@ -188,22 +187,3 @@ function mergeTranslations(translations, newTranslations) {
188
187
}
189
190
191
-
192
-function vsprintf(string, args) {
193
- const replace = [].concat(args || []);
194
195
- return string.replace(/(%[sd])/g, function(match) {
196
- console.log(replace);
197
- if (!replace.length) {
198
- return match;
199
- }
200
201
- if (match === '%s') {
202
- return replace.shift();
203
204
205
- if (match === '%d') {
206
- return ParseFloat(replace.shift());
207
208
- });
209
-}
0 commit comments