mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 22:15:12 +00:00
Merge remote-tracking branch 'refs/remotes/origin/master' into fa5
This commit is contained in:
commit
b68a9f7ea4
1 changed files with 6 additions and 9 deletions
|
@ -32,17 +32,14 @@ export default (lang, locale) => {
|
|||
exclude: /node_modules/,
|
||||
loader: StringReplacePlugin.replace({
|
||||
replacements: [{
|
||||
pattern: /"%i18n:(.+?)%"/g, replacement: (_, key) => {
|
||||
return '"' + get(key).replace(/"/g, '\\"') + '"';
|
||||
}
|
||||
pattern: /"%i18n:(.+?)%"/g, replacement: (_, key) =>
|
||||
'"' + get(key).replace(/"/g, '\\"') + '"'
|
||||
}, {
|
||||
pattern: /'%i18n:(.+?)%'/g, replacement: (_, key) => {
|
||||
return '\'' + get(key).replace(/'/g, '\\\'') + '\'';
|
||||
}
|
||||
pattern: /'%i18n:(.+?)%'/g, replacement: (_, key) =>
|
||||
'\'' + get(key).replace(/'/g, '\\\'') + '\''
|
||||
}, {
|
||||
pattern: /%i18n:(.+?)%/g, replacement: (_, key) => {
|
||||
return get(key);
|
||||
}
|
||||
pattern: /%i18n:(.+?)%/g, replacement: (_, key) =>
|
||||
get(key)
|
||||
}]
|
||||
})
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue