replace function for lingua

This commit is contained in:
Lio Young 2021-04-08 22:12:23 +02:00
parent 59ecdf2cff
commit 2e947fbdda
No known key found for this signature in database
GPG Key ID: 789795A11879E169
1 changed files with 4 additions and 0 deletions

4
src/utils/replace.ts Normal file
View File

@ -0,0 +1,4 @@
export default function replace(to_replace: string, replace_with: string, full_string: string) {
return full_string.replace(to_replace, replace_with)
}