Translator: destroy() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The destroy() method of the Translator interface destroys the Translator instance it is called on.

Syntax

js
destroy()

Parameters

None.

Return value

None (undefined).

Examples

Basic destroy() usage

js
const translator = await Translator.create({
  sourceLanguage: "en",
  targetLanguage: "ja",
});

// ...

translator.destroy();

Specifications

No specification found

No specification data found for api.Translator.destroy.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

See also