generated from explainers-by-googlers/template
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Some translation APIs provide support for a glossary of specialized terms, e.g. here is Google Cloud Translation's documentation or DeepL's.
I think it would look something like this:
const translator = await translation.createTranslator({
sourceLanguage: "ja",
targetLanguage: "en",
glossary: {
"巨人": "Titan",
"調査兵団": "Survey Corps",
"超大型巨人": "Colossal Titan",
"リヴァイ兵長": "Captain Levi",
"ウォール・シーナ": "Wall Sina"
}
});The example given here is translating something about the popular manga/anime Attack on Titan, using the official translations that are widely used. Note that they can definitely differ from the default translations, e.g. Google Translate gives "giant", "Research Corps", and "Super-sized giants" for the first three.
tomayac, globalpai and kenchriskatopz
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request