Use correct variable

pull/21833/head
Travis Ralston 2021-07-31 11:50:25 -06:00
parent 0923dd37ab
commit 9e0ec63ea7
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ export function _t(text: string, variables?: IVariables, tags?: Tags): Translate
*/
export function sanitizeForTranslation(text: string): string {
// Add a non-breaking space so the regex doesn't trigger when translating.
return text.replace(/\$\(([^)]*)\)/g, '$\xa0($1)');
return text.replace(/%\(([^)]*)\)/g, '%\xa0($1)');
}
/*