fix ?
This commit is contained in:
parent
4e80c8fc0c
commit
a0093a8379
1 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ function parseMinecraftMessage(component) {
|
||||||
const withArgs = comp.with.map(arg => extractText(arg));
|
const withArgs = comp.with.map(arg => extractText(arg));
|
||||||
let usedReplacements = 0;
|
let usedReplacements = 0;
|
||||||
|
|
||||||
translateString = translateString.replace(/thing__placeholder__/g, 'thing__placeholderdefault__');
|
translateString = translateString.replace(/thing__placeholder__/g, 'default_thing__placeholder__');
|
||||||
translateString = translateString.replace(/%s/g, (match, offset, string) => {
|
translateString = translateString.replace(/%s/g, (match, offset, string) => {
|
||||||
if (offset > 0 && string[offset - 1] === '%') {
|
if (offset > 0 && string[offset - 1] === '%') {
|
||||||
return 's';
|
return 's';
|
||||||
|
@ -261,7 +261,7 @@ function parseMinecraftMessage(component) {
|
||||||
return formattedArg;
|
return formattedArg;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
translateString = translateString.replace(/thing__placeholderdefault__/g, 'thing__placeholder__');
|
translateString = translateString.replace(/default_thing__placeholder__/g, 'thing__placeholder__');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DefaultMsg) {
|
if (DefaultMsg) {
|
||||||
|
@ -311,7 +311,7 @@ function parseMinecraftMessageNoColor(component) {
|
||||||
const withArgs = comp.with.map(arg => extractText(arg));
|
const withArgs = comp.with.map(arg => extractText(arg));
|
||||||
let usedReplacements = 0;
|
let usedReplacements = 0;
|
||||||
|
|
||||||
translateString = translateString.replace(/thing__placeholder__/g, 'thing__placeholderdefault__');
|
translateString = translateString.replace(/thing__placeholder__/g, 'default_thing__placeholder__');
|
||||||
translateString = translateString.replace(/%s/g, (match, offset, string) => {
|
translateString = translateString.replace(/%s/g, (match, offset, string) => {
|
||||||
if (offset > 0 && string[offset - 1] === '%') {
|
if (offset > 0 && string[offset - 1] === '%') {
|
||||||
return 's';
|
return 's';
|
||||||
|
@ -346,7 +346,7 @@ function parseMinecraftMessageNoColor(component) {
|
||||||
return formattedArg;
|
return formattedArg;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
translateString = translateString.replace(/thing__placeholderdefault__/g, 'thing__placeholder__');
|
translateString = translateString.replace(/default_thing__placeholder__/g, 'thing__placeholder__');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DefaultMsg) {
|
if (DefaultMsg) {
|
||||||
|
|
Loading…
Reference in a new issue