fix(i18n): 지원하지 않는 원문 언어 번역 작업을 제외한다
This commit is contained in:
@@ -21,6 +21,8 @@ class TranslationJobScheduler(
|
||||
if (normalizedText.isBlank()) return
|
||||
|
||||
val normalizedSourceLanguage = sourceLanguage.lowercase()
|
||||
if (!SUPPORTED_SOURCE_LANGUAGE_CODES.contains(normalizedSourceLanguage)) return
|
||||
|
||||
val normalizedTargetLanguage = targetLanguage.lowercase()
|
||||
if (normalizedSourceLanguage == normalizedTargetLanguage) return
|
||||
|
||||
@@ -47,4 +49,8 @@ class TranslationJobScheduler(
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val SUPPORTED_SOURCE_LANGUAGE_CODES = setOf("ko", "en", "ja")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user