Skip to content

Commit b0f4196

Browse files
committed
refactor(babel): simplify useIntlayer call and enhance Babel plugin for dictionary optimization
1 parent bdc19ef commit b0f4196

File tree

4 files changed

+180
-196
lines changed

4 files changed

+180
-196
lines changed

examples/vite-react-app/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import viteLogo from '/vite.svg';
88

99
const AppContent: FC = () => {
1010
const [count, setCount] = useState(0);
11-
const dic = 'app';
12-
const content = useIntlayer(dic);
11+
const content = useIntlayer('app');
1312

1413
return (
1514
<>

0 commit comments

Comments
 (0)