Class

IpcNsiHandler

IpcNsiHandler()

Constructor

# new IpcNsiHandler()

View Source backend/ipc/ipc_nsi_handler.js, line 41

Methods

# getSwordLocaleCode()

SWORD uses an underscore as a separator (like pt_BR), while i18next uses a hyphen. So here we replace any hyphen in the localeCode with an underscore, so that this works with SWORD.

View Source backend/ipc/ipc_nsi_handler.js, line 167

# isDictionaryType(type) → {boolean}

Checks if a module type string represents a DICTIONARY module. DICTIONARY modules include Lexicons / Dictionaries, Images, and Maps.

Parameters:
Name Type Description
type string

The module type string to check

View Source backend/ipc/ipc_nsi_handler.js, line 135

True if the type is a dictionary-type module

boolean