File tree 3 files changed +0
-18
lines changed
3 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 1
- import { allFakers } from "@faker-js/faker" ;
2
1
import { makeDecorator , useEffect } from '@storybook/preview-api' ;
3
- import { capitalize } from "lodash-es" ;
4
2
import { fetchContainers } from "./helpers" ;
5
3
/* global Typekit */
6
4
@@ -22,13 +20,6 @@ export const withLanguageWrapper = makeDecorator({
22
20
const isNotEnglish = lang && lang !== "en-US" ;
23
21
const isRTL = [ "ar" , "fa" , "he" ] . includes ( lang ) ;
24
22
25
- // @todo : this can't be used for VRT because the strings are random
26
- // Attach the generator tool to the parameters for use in the story
27
- context . generator = allFakers ?. [ lang ] ;
28
-
29
- // Add a custom generator for titles
30
- context . generator . lorem . title = ( count ) => capitalize ( context . generator . lorem . words ( count ) ) ;
31
-
32
23
// Add a textDirection property to the globals for use in the story
33
24
context . globals . textDirection = isRTL ? "rtl" : "ltr" ;
34
25
Original file line number Diff line number Diff line change 41
41
"@etchteam/storybook-addon-status" : " ^5.0.0" ,
42
42
"@storybook/addon-a11y" : " ^8.4.1" ,
43
43
"@storybook/addon-actions" : " ^8.4.1" ,
44
- "@faker-js/faker" : " ^8.4.1" ,
45
44
"@storybook/addon-console" : " ^3.0.0" ,
46
45
"@storybook/addon-designs" : " ^8.0.4" ,
47
46
"@storybook/addon-docs" : " ^8.4.1" ,
Original file line number Diff line number Diff line change @@ -1927,13 +1927,6 @@ __metadata:
1927
1927
languageName: node
1928
1928
linkType: hard
1929
1929
1930
- "@faker-js/faker@npm:^8.4.1":
1931
- version: 8.4.1
1932
- resolution: "@faker-js/faker@npm:8.4.1"
1933
- checksum: 10c0/4f2aecddcfdc2cc8b50b2d15d1e37302a7c7a5bbd184ae910a9d271bc11248533ca74dcdd4a9ccbe20410553e7af0f6a4d334c5b955635e09a32ddf4a64942d4
1934
- languageName: node
1935
- linkType: hard
1936
-
1937
1930
"@fastify/busboy@npm:^2.0.0":
1938
1931
version: 2.1.1
1939
1932
resolution: "@fastify/busboy@npm:2.1.1"
@@ -3820,7 +3813,6 @@ __metadata:
3820
3813
"@babel/core": "npm:^7.26.0"
3821
3814
"@chromaui/addon-visual-tests": "npm:^1.0.0"
3822
3815
"@etchteam/storybook-addon-status": "npm:^5.0.0"
3823
- "@faker-js/faker": "npm:^8.4.1"
3824
3816
"@spectrum-css/table": "workspace:^"
3825
3817
"@spectrum-css/tokens": "workspace:^"
3826
3818
"@spectrum-css/typography": "workspace:^"
You can’t perform that action at this time.
0 commit comments