We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5e174 commit 3cc30bbCopy full SHA for 3cc30bb
uncoder-core/app/translator/translator.py
@@ -152,13 +152,7 @@ def translate_one(
152
source_alt_mapping: Optional[str] = None,
153
target_alt_mapping: Optional[str] = None,
154
) -> (bool, str):
155
- if source == target:
156
- if target_alt_mapping or source_alt_mapping:
157
- message = (
158
- "Currently, Uncoder doesn't support translation between "
159
- "non-default data schemas of the same platform."
160
- )
161
- return False, message
+ if source == target and not (target_alt_mapping or source_alt_mapping):
162
return True, text
163
return self.__translate_one(
164
text=text,
0 commit comments