Skip to content

Commit

Permalink
refactor: tweaks on translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Oct 25, 2024
1 parent 75d5d17 commit bdd7861
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions js/ActionPopup/SortableItem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

Check failure on line 1 in js/ActionPopup/SortableItem.js

View workflow job for this annotation

GitHub Actions / npm (18.x)

'react' should be listed in the project's dependencies. Run 'npm i -S react' to add it
import { SortableElement, sortableHandle } from 'react-sortable-hoc';
import { __ } from '@wordpress/i18n';
import { __, sprintf } from '@wordpress/i18n';
import { unescape } from 'lodash';
import {
Icon,
Expand Down Expand Up @@ -168,7 +168,14 @@ const SortableItem = ({ propRef, loopIndex, item }) => {
<BaseControl>
<TextareaControl
label={ __( 'Main Prompt', 'feedzy-rss-feeds' ) }
help={__( 'You can use {content} in the textarea such as: "Rephrase my {content} for better SEO.".', 'feedzy-rss-feeds' )}
help={
sprintf(
// translators: %s is the tag content: {content}
__( 'You can use %s in the textarea such as: "Rephrase my %s for better SEO."', 'feedzy-rss-feeds' ),
'{content}',
'{content}'
)
}
value={ item.data.ChatGPT ? unescape(item.data.ChatGPT.replaceAll('&#039;', '\'')) : '' }
onChange={ ( currentValue ) => propRef.onChangeHandler( { 'index': loopIndex, 'ChatGPT': currentValue ?? '' } ) }
disabled={!feedzyData.isPro || !feedzyData.apiLicenseStatus.openaiStatus}
Expand Down

0 comments on commit bdd7861

Please sign in to comment.