diff --git a/objects/translation/definition.json b/objects/translation/definition.json index 17f834f..c393b51 100644 --- a/objects/translation/definition.json +++ b/objects/translation/definition.json @@ -1,4 +1,12 @@ { + "requiredOneOf": [ + "original-text", + "translated-text", + "original-text", + "original-language", + "translation-language", + "translation-type" + ], "attributes": { "original-text": { "description": "Original text", @@ -13,17 +21,219 @@ "original-language": { "description": "Language of the original text", "ui-priority": 1, - "misp-attribute": "text" + "misp-attribute": "text", + "sane_default": [ + "Mandarin (language family)", + "Spanish", + "English", + "Hindi", + "Bengali", + "Portuguese", + "Russian", + "Japanese", + "Western Punjabi", + "Marathi", + "Telugu", + "Wu (language family)", + "Turkish", + "Korean", + "French", + "German", + "Vietnamese", + "Tamil", + "Yue (language family)", + "Urdu", + "Javanese", + "Italian", + "Egyptian Arabic", + "Gujarati", + "Iranian Persian", + "Bhojpuri", + "Min Nan (language family)", + "Hakka", + "Jinyu", + "Hausa", + "Kannada", + "Indonesian (Indonesian Malay)", + "Polish", + "Yoruba", + "Xiang Chinese (language family)", + "Malayalam", + "Odia", + "Maithili", + "Burmese", + "Eastern Punjabi", + "Sunda", + "Sudanese Arabic", + "Algerian Arabic", + "Moroccan Arabic", + "Ukrainian", + "Igbo", + "Northern Uzbek", + "Sindhi", + "North Levantine Arabic", + "Romanian", + "Tagalog", + "Dutch", + "Saʽidi Arabic", + "Gan", + "Amharic", + "Northern Pashto", + "Magahi", + "Thai", + "Saraiki", + "Khmer", + "Chhattisgarhi", + "Somali", + "Malay (Malaysian Malay)", + "Cebuano", + "Nepali", + "Mesopotamian Arabic", + "Assamese", + "Sinhala", + "Northern Kurdish", + "Hejazi Arabic", + "Nigerian Fulfulde", + "South Azerbaijani", + "Greek", + "Chittagonian", + "Kazakh", + "Deccan", + "Hungarian", + "Kinyarwanda", + "Zulu", + "South Levantine Arabic", + "Tunisian Arabic", + "Sanaani Spoken Arabic", + "Min Bei Chinese (language family)", + "Southern Pashto", + "Rundi", + "Czech", + "Taʽizzi-Adeni Arabic", + "Uyghur", + "Min Dong Chinese (language family)", + "Sylheti " + ] }, "translation-language": { "description": "Language of translation", "ui-priority": 1, - "misp-attribute": "text" + "misp-attribute": "text", + "sane_default": [ + "Mandarin (language family)", + "Spanish", + "English", + "Hindi", + "Bengali", + "Portuguese", + "Russian", + "Japanese", + "Western Punjabi", + "Marathi", + "Telugu", + "Wu (language family)", + "Turkish", + "Korean", + "French", + "German", + "Vietnamese", + "Tamil", + "Yue (language family)", + "Urdu", + "Javanese", + "Italian", + "Egyptian Arabic", + "Gujarati", + "Iranian Persian", + "Bhojpuri", + "Min Nan (language family)", + "Hakka", + "Jinyu", + "Hausa", + "Kannada", + "Indonesian (Indonesian Malay)", + "Polish", + "Yoruba", + "Xiang Chinese (language family)", + "Malayalam", + "Odia", + "Maithili", + "Burmese", + "Eastern Punjabi", + "Sunda", + "Sudanese Arabic", + "Algerian Arabic", + "Moroccan Arabic", + "Ukrainian", + "Igbo", + "Northern Uzbek", + "Sindhi", + "North Levantine Arabic", + "Romanian", + "Tagalog", + "Dutch", + "Saʽidi Arabic", + "Gan", + "Amharic", + "Northern Pashto", + "Magahi", + "Thai", + "Saraiki", + "Khmer", + "Chhattisgarhi", + "Somali", + "Malay (Malaysian Malay)", + "Cebuano", + "Nepali", + "Mesopotamian Arabic", + "Assamese", + "Sinhala", + "Northern Kurdish", + "Hejazi Arabic", + "Nigerian Fulfulde", + "South Azerbaijani", + "Greek", + "Chittagonian", + "Kazakh", + "Deccan", + "Hungarian", + "Kinyarwanda", + "Zulu", + "South Levantine Arabic", + "Tunisian Arabic", + "Sanaani Spoken Arabic", + "Min Bei Chinese (language family)", + "Southern Pashto", + "Rundi", + "Czech", + "Taʽizzi-Adeni Arabic", + "Uyghur", + "Min Dong Chinese (language family)", + "Sylheti " + ] }, "translation-service": { "description": "translation service used for the translation", "ui-priority": 1, - "misp-attribute": "text" + "misp-attribute": "text", + "sane_default": [ + "Google Translate", + "Microsoft Translator", + "Babelfish", + "Reverso", + "Dict.cc", + "Linguee", + "unknown" + ] + }, + "translation-type": { + "description": "type of translation", + "ui-priority": 1, + "misp-attribute": "text", + "sane_default": [ + "Automated translation", + "Manual translation" + ] } }, "version": 1,