summaryrefslogtreecommitdiffstats
path: root/browser/components/storybook/.storybook/addon-pseudo-localization/preset/preview.mjs
blob: cf4f135d405bdfcf09f1aa9af470f380e33e185a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * This file provides global decorators for the Storybook addon. In theory we
 * could combine multiple decorators, but for now we only need one.
 */

import {
  withPseudoLocalization,
  withFluentStrings,
} from "../withPseudoLocalization.mjs";

export const decorators = [withPseudoLocalization, withFluentStrings];
export const globalTypes = {
  pseudoStrategy: {
    name: "Pseudo l10n strategy",
    description: "Provides text variants for testing different locales.",
    defaultValue: "default",
  },
  fluentStrings: {
    name: "Fluent string map for components",
    description: "Mapping of component to fluent strings.",
    defaultValue: {},
  },
};