T

LocaleSource

Where an addon's translations live: the codes its manifest lists, and how to read one.

type LocaleSource = { … }

Members

codesreadonly string[]

Every locale the addon ships beside its bundle, en-US aside.

ownerstring

The addon's id, named in errors.

read(code: string) => Promise<string>

Reads one locale's JSON, such as from <addon folder>/i18n/<code>.json.