Use the chrome.languageSettingsPrivate API to get or change language and input method settings.
Use the chrome.languageSettingsPrivate API to get or change language and input method settings. * available since Chrome master
(add-input-method input-method-id)
Adds the input method to the current user's list of enabled input methods, enabling the input method for the current user. Chrome OS only.
|input-method-id| - ?
Adds the input method to the current user's list of enabled input methods, enabling the input method for the current user. Chrome OS only. |input-method-id| - ?
(add-spellcheck-word word)
Adds a word to the custom dictionary.
|word| - ?
Adds a word to the custom dictionary. |word| - ?
(disable-language language-code)
Disables a language, removing it from the Accept-Language list.
|language-code| - ?
Disables a language, removing it from the Accept-Language list. |language-code| - ?
(enable-language language-code)
Enables a language, adding it to the Accept-Language list (used to decide which languages to translate, generate the Accept-Language header, etc.).
|language-code| - ?
Enables a language, adding it to the Accept-Language list (used to decide which languages to translate, generate the Accept-Language header, etc.). |language-code| - ?
(get-input-method-lists)
Gets all supported input methods, including third-party IMEs. Chrome OS only.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [lists] where:
|lists| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets all supported input methods, including third-party IMEs. Chrome OS only. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [lists] where: |lists| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-language-list)
Gets languages available for translate, spell checking, input and locale.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [languages] where:
|languages| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets languages available for translate, spell checking, input and locale. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [languages] where: |languages| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-spellcheck-dictionary-statuses)
Gets the current status of the chosen spell check dictionaries.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the current status of the chosen spell check dictionaries. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-spellcheck-words)
Gets the custom spell check words, in sorted order.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [words] where:
|words| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the custom spell check words, in sorted order. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [words] where: |words| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-translate-target-language)
Gets the translate target language (in most cases, the display locale).
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [language-code] where:
|language-code| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the translate target language (in most cases, the display locale). This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [language-code] where: |language-code| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(move-language language-code move-type)
Moves a language inside the language list.
|language-code| - ? |move-type| - ?
Moves a language inside the language list. |language-code| - ? |move-type| - ?
(on-spellcheck-dictionaries-changed* config channel & args)
(remove-input-method input-method-id)
Removes the input method from the current user's list of enabled input methods, disabling the input method for the current user. Chrome OS only.
|input-method-id| - ?
Removes the input method from the current user's list of enabled input methods, disabling the input method for the current user. Chrome OS only. |input-method-id| - ?
(remove-spellcheck-word word)
Removes a word from the custom dictionary.
|word| - ?
Removes a word from the custom dictionary. |word| - ?
(retry-download-dictionary language-code)
Tries to download the dictionary after a failed download.
|language-code| - ?
Tries to download the dictionary after a failed download. |language-code| - ?
(set-enable-translation-for-language language-code enable)
Enables or disables translation for a given language.
|language-code| - ? |enable| - ?
Enables or disables translation for a given language. |language-code| - ? |enable| - ?
(set-enable-translation-for-language* config language-code enable)
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.language-settings-private namespace.
Taps all valid non-deprecated events in chromex.ext.language-settings-private namespace.
(tap-on-custom-dictionary-changed-events channel & args)
Called when words are added to and/or removed from the custom spell check dictionary.
Events will be put on the |channel| with signature [::on-custom-dictionary-changed [words-added words-removed]] where:
|words-added| - ? |words-removed| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Called when words are added to and/or removed from the custom spell check dictionary. Events will be put on the |channel| with signature [::on-custom-dictionary-changed [words-added words-removed]] where: |words-added| - ? |words-removed| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-input-method-added-events channel & args)
Called when an input method is added.
Events will be put on the |channel| with signature [::on-input-method-added [input-method-id]] where:
|input-method-id| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Called when an input method is added. Events will be put on the |channel| with signature [::on-input-method-added [input-method-id]] where: |input-method-id| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-input-method-removed-events channel & args)
Called when an input method is removed.
Events will be put on the |channel| with signature [::on-input-method-removed [input-method-id]] where:
|input-method-id| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Called when an input method is removed. Events will be put on the |channel| with signature [::on-input-method-removed [input-method-id]] where: |input-method-id| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-spellcheck-dictionaries-changed-events channel & args)
Called when the pref for the dictionaries used for spell checking changes or the status of one of the spell check dictionaries changes.
Events will be put on the |channel| with signature [::on-spellcheck-dictionaries-changed [statuses]] where:
|statuses| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Called when the pref for the dictionaries used for spell checking changes or the status of one of the spell check dictionaries changes. Events will be put on the |channel| with signature [::on-spellcheck-dictionaries-changed [statuses]] where: |statuses| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close