feat: add internationalization message platform
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Component } from "react";
|
||||
import { formatMessage } from "../i18n/index.js";
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
@@ -57,9 +58,9 @@ export class RenderErrorBoundary extends Component {
|
||||
return (
|
||||
this.props.fallback ?? (
|
||||
<section role="alert">
|
||||
<p>error.render_failure</p>
|
||||
<p>{formatMessage("ko-KR", "error.render_failure")}</p>
|
||||
<button type="button" onClick={this.reset}>
|
||||
retry
|
||||
{formatMessage("ko-KR", "action.retry")}
|
||||
</button>
|
||||
</section>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user