Skip to content

Commit 3cc30bb

Browse files
committed
TDM-9415 enable one vendor translation with alt_mapping
1 parent 9e5e174 commit 3cc30bb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

uncoder-core/app/translator/translator.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,7 @@ def translate_one(
152152
source_alt_mapping: Optional[str] = None,
153153
target_alt_mapping: Optional[str] = None,
154154
) -> (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
155+
if source == target and not (target_alt_mapping or source_alt_mapping):
162156
return True, text
163157
return self.__translate_one(
164158
text=text,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy