Skip to content

Commit 914b5df

Browse files
authored
Include RAC i18n strings with RSP LocalizedStringProvider (#6743)
* testing app * adding RAC to RSP stringprovider * misformatted * update app * removing unused imports
1 parent f998292 commit 914b5df

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

examples/rsp-next-ts/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
transpilePackages: [
66
'@adobe/react-spectrum',
77
'@react-spectrum/*',
8-
'@spectrum-icons/*',
8+
'@spectrum-icons/*'
99
].flatMap(spec => glob.sync(`${spec}`, { cwd: 'node_modules/' })),
1010
basePath:
1111
process.env.VERDACCIO && process.env.CIRCLE_SHA1

examples/rsp-next-ts/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function MyApp({ Component, pageProps }: AppProps) {
3131
enableTableNestedRows();
3232

3333
return (
34-
<Provider
34+
<Provider
3535
theme={lightTheme}
3636
colorScheme={theme}
3737
router={{

examples/rsp-next-ts/pages/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ import {
7979
ColorArea,
8080
ColorField,
8181
ColorSlider,
82+
ColorSwatch,
83+
ColorSwatchPicker,
8284
ColorWheel,
8385
} from "@react-spectrum/color";
8486
import ReorderableListView from "../components/ReorderableListView";
@@ -242,6 +244,12 @@ export default function Home() {
242244
<ColorField label="Primary Color" />
243245
<ColorSlider defaultValue="#7f0000" channel="red" />
244246
<ColorWheel defaultValue="hsl(30, 100%, 50%)" />
247+
<ColorSwatchPicker defaultValue="#f00">
248+
<ColorSwatch color="#f00" />
249+
<ColorSwatch color="#0f0" />
250+
<ColorSwatch color="#0ff" />
251+
<ColorSwatch color="#00f" />
252+
</ColorSwatchPicker>
245253
</Section>
246254

247255
<Section title="Date and Time">

scripts/buildI18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ export declare function createLocalizedStringDictionary(packages: string[]): Loc
137137
`);
138138
}
139139

140-
build('{@react-aria,@react-stately,@react-spectrum}/*', '@adobe/react-spectrum');
140+
build('{@react-aria/*,@react-stately/*,@react-spectrum/*,react-aria-components}', '@adobe/react-spectrum');
141141
build('{@react-aria/*,@react-stately/*,react-aria-components}', 'react-aria-components');
142142
build('{@react-aria,@react-stately}/*', 'react-aria');

0 commit comments

Comments
 (0)