You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the string is not inside curly braces, it will throw an error:
kotlin.KotlinNullPointerException
at com.eny.i18n.plugin.language.jsx.JsxTranslationExtractor.text(JsxLanguageFactory.kt:69)
at com.eny.i18n.plugin.ide.actions.ExtractI18nIntentionAction.doInvoke(ExtractI18nIntentionAction.kt:52)
at com.eny.i18n.plugin.ide.actions.ExtractI18nIntentionAction.access$doInvoke(ExtractI18nIntentionAction.kt:24)
at com.eny.i18n.plugin.ide.actions.ExtractI18nIntentionAction$invoke$1.run(ExtractI18nIntentionAction.kt:36)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214)
If the string is inside braces, it will extract the key. However the result use the i18n.t function instead of the existing t function from the translation hook. It will look like:
<Textvalue={i18n.t('key')}/>
The text was updated successfully, but these errors were encountered:
Given the following example, I have encountered two problems when using the "Extract i18n key" feature:
i18n.t
function instead of the existingt
function from the translation hook. It will look like:The text was updated successfully, but these errors were encountered: