Issue with Translatable Strings in Gutenberg Block using __ Function
-
Hi @timwhitlock, thanks for the awesome plugin! I have been using it for a long time.
Today, I was developing a Gutenberg block and generated a
.pot
file usingwp i18n make-pot
. The file atlanguages/plugin.pot
includes all the translatable strings fromindex.js
,edit.js
, etc.However, LocoTranslate is not able to translate those files.
Are you aware of this issue?
I am including some code below:
// index.js
<span style="font-family: inherit; font-size: 0.8rem;">import { __ } from '@wordpress/i18n';</span>
<span style="font-family: inherit; font-size: 0.8rem;">import { PanelBody, ToggleControl } from '@wordpress/components';</span>
<span style="font-family: inherit; font-size: 0.8rem;"></span>
// Return Edit component
<InspectorControls>
<PanelBody title={ __( 'Settings', 'plugin' ) }>
<ToggleControl
label={ __( 'Fixed width table cells', 'plugin' ) }
checked={ hasFixedLayout }
onChange={ ( value ) =>
setAttributes( { hasFixedLayout: value } )
}
/>
<ToggleControl
label={ __( 'Hide Table Title', 'plugin' ) }
checked={ hideTableTitle }
onChange={ ( value ) =>
setAttributes( { hideTableTitle: value } )
}
/>
</PanelBody>
</InspectorControls>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.