We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6b07c commit 68d32d6Copy full SHA for 68d32d6
1 file changed
packages/core/src/i18n.ts
@@ -193,7 +193,7 @@ export class I18n extends EventEmitter<Events> {
193
194
195
// hack for parsing unicode values inside a string to get parsed in react native environments
196
- if (isString(translation) && /\\u[a-fA-F0-9]{4}/g.test(translation)) return JSON.parse(`"${translation}"`)
+ if (isString(translation) && /\\u[a-fA-F0-9]{4}/g.test(translation)) return JSON.parse(`"${translation}"`) as string;
197
if (isString(translation)) return translation
198
199
return interpolate(
0 commit comments