preview.mjs (875B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /** 6 * This file provides global decorators for the Storybook addon. In theory we 7 * could combine multiple decorators, but for now we only need one. 8 */ 9 10 import { 11 withPseudoLocalization, 12 withFluentStrings, 13 } from "../withPseudoLocalization.mjs"; 14 15 export const decorators = [withPseudoLocalization, withFluentStrings]; 16 export const globalTypes = { 17 pseudoStrategy: { 18 name: "Pseudo l10n strategy", 19 description: "Provides text variants for testing different locales.", 20 defaultValue: "default", 21 }, 22 fluentStrings: { 23 name: "Fluent string map for components", 24 description: "Mapping of component to fluent strings.", 25 defaultValue: {}, 26 }, 27 };