Skip to content

Commit 6f2367c

Browse files
committed
feat(components): review changes
1 parent 1e11786 commit 6f2367c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ By changing the following setting you can choose on which fields this plugin wil
4444

4545
![](https://github.com/voorhoede/datocms-plugin-translate-fields/raw/main/docs/translate-fields-general-settings.png)
4646

47-
- **Translation service**: You can choose which service will be used to translate. The chosen service will be used and an option to add an api key will be presented automatically. Some translation services require some extra settings. These will be shown when a `Translation service` is selected.
47+
- **Translation service (multi select)**: You can choose which service will be used to translate. The chosen service will be used and an option to add an api key will be presented automatically. Some translation services require some extra settings. These will be shown when a `Translation service` is selected.
4848

4949
> Options of `Translation service`:
5050
> * Yandex translate
5151
> * DeepL API Pro
5252
> * DeepL API Free
5353
> * OpenAI
5454
55-
- **API key of `[selected translation service]`**: Add the API key of the translation service that you have selected. The plugin will give errors if the API key isn't added or if the translation service serves an error.
55+
- **API key of `[selected translation service]` (text field)**: Add the API key of the translation service that you have selected. The plugin will give errors if the API key isn't added or if the translation service serves an error.
5656

57-
- **Exclude key**: Add a comma separated list of keys of fields you don't want to translate. This can be usefull for rich text components where certain fields have fixed keys (i.e. choosing a theme or have fixed variants). If you translate a field that is included in the list it will skip the field and copy the content 'as is' in the translated field.
57+
- **Exclude key (text field)**: Add a comma separated list of keys of fields you don't want to translate. This can be usefull for rich text components where certain fields have fixed keys (i.e. choosing a theme or have fixed variants). If you translate a field that is included in the list it will skip the field and copy the content 'as is' in the translated field.
5858

5959
## Contributing
6060

src/components/FormalityField/FormalityField.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export default function FormalityField({
2626
}}
2727
placeholder="Select a formality level"
2828
onChange={(newValue) => {
29-
const value = newValue as Value
30-
onChange(value)
29+
onChange(newValue as Value)
3130
}}
3231
/>
3332
)

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ connect({
2323
renderConfigScreen(ctx) {
2424
return render(<ConfigScreen ctx={ctx} />)
2525
},
26-
// @ts-expect-error
26+
// @ts-expect-error because of single bock missing as field type
2727
manualFieldExtensions() {
2828
return [
2929
{

0 commit comments

Comments
 (0)