Module: i18next/src
Classes
Interfaces
- BuilderWithDescription
- BuilderWithName
- HMROptions
- I18nextFormatters
- InternationalizationClientOptions
- InternationalizationContext
- InternationalizationOptions
- LocalizedData
- StringMap
- TFunction
Type Aliases
BuilderWithNameAndDescription
Ƭ BuilderWithNameAndDescription: BuilderWithName
& BuilderWithDescription
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:180
ChannelTarget
Ƭ ChannelTarget: Message
| DiscordChannel
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:181
DiscordChannel
Ƭ DiscordChannel: TextBasedDiscordChannel
| StageChannel
| VoiceChannel
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:139
DynamicOptions
Ƭ Private
DynamicOptions<T
>: (namespaces
: string
[], languages
: string
[]) => T
Type parameters
Name | Type |
---|---|
T | extends InitOptions |
Type declaration
▸ Private
(namespaces
, languages
): T
Parameters
Name | Type |
---|---|
namespaces | string [] |
languages | string [] |
Returns
T
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:63
TFunctionKeys
Ƭ TFunctionKeys: TFuncKey
| TemplateStringsArray
extends infer A ? A
: never
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:21
TFunctionResult
Ƭ TFunctionResult<N
, TKPrefix
>: TFuncReturn
<N
, TFunctionKeys
, DefaultTFuncReturnWithObject
, TKPrefix
>
Type parameters
Name | Type |
---|---|
N | extends Namespace = TypeOptions ["defaultNS" ] |
TKPrefix | undefined |
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:22
TOptions
Ƭ TOptions<TInterpolationMap
>: TOptionsBase
& TInterpolationMap
Type parameters
Name | Type |
---|---|
TInterpolationMap | extends object = StringMap |
Defined in
node_modules/i18next/index.d.ts:717
Target
Ƭ Target: CommandInteraction
| ChannelTarget
| Guild
| MessageComponentInteraction
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:182
TextBasedDiscordChannel
Ƭ TextBasedDiscordChannel: Message
["channel"
]
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:138
Functions
applyDescriptionLocalizedBuilder
▸ applyDescriptionLocalizedBuilder<T
>(builder
, key
): T
Type parameters
Name | Type |
---|---|
T | extends BuilderWithDescription <T > |
Parameters
Name | Type | Description |
---|---|---|
builder | T | |
key | string | TemplateStringsArray |
Returns
T
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:177
applyLocalizedBuilder
▸ applyLocalizedBuilder<T
>(builder
, ...params
): T
Type parameters
Name | Type |
---|---|
T | extends BuilderWithName <T > & BuilderWithDescription <T > |
Parameters
Name | Type | Description |
---|---|---|
builder | T | |
...params | [root: string] | [name: string | TemplateStringsArray, description: string | TemplateStringsArray] |
Returns
T
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:234
applyNameLocalizedBuilder
▸ applyNameLocalizedBuilder<T
>(builder
, key
): T
Type parameters
Name | Type |
---|---|
T | extends BuilderWithName <T > |
Parameters
Name | Type | Description |
---|---|---|
builder | T | |
key | string | TemplateStringsArray |
Returns
T
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:166
createLocalizedChoice
▸ createLocalizedChoice<ValueType
>(key
, options
): APIApplicationCommandOptionChoice
<ValueType
>
Type parameters
Name | Type |
---|---|
ValueType | string | number |
Parameters
Name | Type | Description |
---|---|---|
key | string | TemplateStringsArray | |
options | Omit <APIApplicationCommandOptionChoice <ValueType >, "name" | "name_localizations" > |
Returns
APIApplicationCommandOptionChoice
<ValueType
>
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:274
fetchLanguage
▸ fetchLanguage(target
): Promise
<string
>
Parameters
Name | Type | Description |
---|---|---|
target | Target |
Returns
Promise
<string
>
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:38
fetchT
▸ fetchT(target
): Promise
<TFunction
<"translation"
, undefined
, "translation"
>>
Parameters
Name | Type | Description |
---|---|---|
target | Target |
Returns
Promise
<TFunction
<"translation"
, undefined
, "translation"
>>
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:75
getLocalizedData
▸ getLocalizedData(key
): LocalizedData
Parameters
Name | Type | Description |
---|---|---|
key | string | TemplateStringsArray |
Returns
Defined in
projects/plugins/packages/i18next/src/lib/functions.ts:150
resolveKey
▸ resolveKey<TResult
, TKeys
, TInterpolationMap
>(target
, key
, options?
): Promise
<TResult
>
Type parameters
Name | Type |
---|---|
TResult | extends DefaultTFuncReturnWithObject = string |
TKeys | extends string = string |
TInterpolationMap | extends object = StringMap |
Parameters
Name | Type | Description |
---|---|---|
target | Target | |
key | TKeys | TKeys [] | |
options? | TOptions <TInterpolationMap > |
Returns
Promise
<TResult
>