mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
* feat: added preload config * feat: support changing locale * fix: name case * fix: removed unused code * feat: added translations for default reactions * fix: do not translate icon * fix: shorter i18n keys
28 lines
651 B
TypeScript
28 lines
651 B
TypeScript
import { createManaged } from "coral-framework/lib/bootstrap";
|
|
import React, { FunctionComponent } from "react";
|
|
import ReactDOM from "react-dom";
|
|
|
|
import App from "./App";
|
|
import { initLocalState } from "./local";
|
|
import localesData from "./locales";
|
|
|
|
// Import css variables.
|
|
import "coral-ui/theme/variables.css";
|
|
|
|
async function main() {
|
|
const ManagedCoralContextProvider = await createManaged({
|
|
initLocalState,
|
|
localesData,
|
|
});
|
|
|
|
const Index: FunctionComponent = () => (
|
|
<ManagedCoralContextProvider>
|
|
<App />
|
|
</ManagedCoralContextProvider>
|
|
);
|
|
|
|
ReactDOM.render(<Index />, document.getElementById("app"));
|
|
}
|
|
|
|
main();
|