You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Use correct variable
This commit is contained in:
@@ -168,7 +168,7 @@ export function _t(text: string, variables?: IVariables, tags?: Tags): Translate
|
|||||||
*/
|
*/
|
||||||
export function sanitizeForTranslation(text: string): string {
|
export function sanitizeForTranslation(text: string): string {
|
||||||
// Add a non-breaking space so the regex doesn't trigger when translating.
|
// 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)');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user