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.
# 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 |
True if the type is a dictionary-type module
boolean