Sync defaultMessage from lokalise * Enhance translation sync functionality and tests - Added logging for found component files during sync. - Introduced tests for handling complex components with replacements. - Updated regex in syncIntlFormatMessage to support optional second arguments. - Removed unused test files. * feat(syncDefaultMessage): add script for syncing default message with lokalise * feat(syncDefaultMessage): add script for syncing default message with lokalise Approved-by: Matilda Landström
16 lines
433 B
TypeScript
16 lines
433 B
TypeScript
import styles from "./page.module.css"
|
|
|
|
import type { LangParams, LayoutArgs, StatusParams } from "@/types/params"
|
|
|
|
export default async function MiddlewareError(
|
|
props: LayoutArgs<LangParams & StatusParams>
|
|
) {
|
|
const params = await props.params
|
|
return (
|
|
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
|
<div className={styles.layout}>
|
|
Middleware error {params.lang} {params.status}
|
|
</div>
|
|
)
|
|
}
|