mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-09-13 07:23:32 -06:00
feat: add i18n
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
import type { Preview } from "@storybook/react";
|
||||
import "../src/style.content.css";
|
||||
import messages from "../locales/en/messages.json";
|
||||
|
||||
const getMessage = (key: string, placeholders: string[]) => {
|
||||
return messages[key].message
|
||||
};
|
||||
|
||||
window.chrome = {
|
||||
i18n: {
|
||||
getMessage: getMessage,
|
||||
} as typeof chrome.i18n,
|
||||
} as typeof chrome;
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
|
Reference in New Issue
Block a user