S222em
Explore posts from serversSIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
This is a piece of code from
InternationalizationHandler.init()
. It does not use the specified default NS in the options as typed. It does work if I provide them to the i18next option. defaultNS in this.options
is ignored on i18next init. See example below24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
I found the issue
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
Key is still not found. I will debug it further later. Got to go
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
Okay the
"src/**/*.json"
made it work24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
I know, but only for JSON files that are imported directly from the code. It just ignores mine as I dont directly import them
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
Typescript. I compile to another directory.
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
Nevermind
t(':key')
does not work either24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
So how would I use the t function with defaultNS? Should it be like
t(':key')
? Im getting a not found on t('key')
24 replies
SIASapphire - Imagine a framework
•Created by S222em on 12/19/2022 in #sapphire-support
i18next plugin without namespaces
Okay yeah thanks
24 replies