(defaultValue: string)
| 35 | react: { |
| 36 | // Reference: https://react.i18next.com/latest/trans-component#i-18-next-options |
| 37 | hashTransKey(defaultValue: string) { |
| 38 | // return a key based on defaultValue or if you prefer to just remind you should set a key return false and throw an error |
| 39 | return `k${crc32(defaultValue).toString(16)}`; |
| 40 | }, |
| 41 | }, |
| 42 | } as any); |
| 43 |