Closed simcen closed 7 months ago
Adds type specifications for switchTemplateLanguage method
Fully leverage multi language templates
import BeePLugin from '@mailupinc/bee-plugin' const beePlugin = new BeePlugin() beePlugin.getToken() const beeConfig :IBeeConfig = { templateLanguage: { value: "de-DE", label: "Deutsch" }, templateLanguages: [ { value: "de-DE", label: "Deutsch" }, { value: "fr-FR", label: "Français" }, { value: "it-IT", label: "Italiano" } ], } beeTest.switchTemplateLanguage({language: "de-DE"});
Extended example application with a language switcher that executes switchTemplateLanguage({language: "de-DE"}) on the bee instance
This update has just been released in version 3.1.0. In addition to your modification, we've also included the "switchPreview" method to enable language switching while in preview mode.
Closing.
Description
Adds type specifications for switchTemplateLanguage method
Motivation and Context
Fully leverage multi language templates
Usage examples
How Has This Been Tested?
Extended example application with a language switcher that executes switchTemplateLanguage({language: "de-DE"}) on the bee instance
Types of changes