Skip to content

Commit

Permalink
Fix guess tag (#3706)
Browse files Browse the repository at this point in the history
* Fix guess tags

* Fix guess tags
  • Loading branch information
riccio82 authored Nov 28, 2024
1 parent 347b5a6 commit f5d554a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/cat_source/es6/utils/segmentUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ const SegmentUtils = {

checkTPSupportedLanguage: function () {
const languagesKey = `${config.source_code.split('-')[0]}-${config.target_code.split('-')[0]}`
const languagesKeyRev = `${config.target_code.split('-')[0]}-${config.source_code.split('-')[0]}`
return Object.keys(config.tag_projection_languages).some(
(key) => key === languagesKey,
(key) => key === languagesKey || key === languagesKeyRev,
)
},
/**
Expand Down

0 comments on commit f5d554a

Please sign in to comment.