Skip to content

Commit

Permalink
#535 related auto code method renaming fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Dec 29, 2023
1 parent 0e7d0b8 commit acba0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arekit/contrib/utils/pipelines/items/text/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __optionally_register(prts):
for entity_index, translated_value in enumerate(translated_parts[1:]):
entity_placeholder_instance = entity_placeholder_template.format(entity_index)
# Cropping text part.
to_ind = text.__index(entity_placeholder_instance)
to_ind = text.index(entity_placeholder_instance)

if self.__do_translate_entity:
origin_entities[entity_index].set_display_value(translated_value.strip())
Expand Down

0 comments on commit acba0a6

Please sign in to comment.