Rename function to avoid dynamic translation detection in i18next parser
parent
1c0fec52cf
commit
5f0b285c21
|
@ -112,7 +112,7 @@ function getSerializedUnit(
|
|||
value: number,
|
||||
unit: Unit,
|
||||
locale: string,
|
||||
t: (s?: string) => string | undefined
|
||||
translate: (s?: string) => string | undefined
|
||||
): string {
|
||||
// removing euro, which is a currency not a unit
|
||||
unit = {
|
||||
|
@ -128,7 +128,7 @@ function getSerializedUnit(
|
|||
|
||||
if (!formatUnit) {
|
||||
return (
|
||||
t(
|
||||
translate(
|
||||
serializeUnit(unit)
|
||||
?.replace(/\/([^\s])/, '/ $1')
|
||||
.replace('/', 'par')
|
||||
|
|
Loading…
Reference in New Issue