diff --git a/comps/form/utils/init.tsx b/comps/form/utils/init.tsx index 02cd4eb..4a0d1f3 100755 --- a/comps/form/utils/init.tsx +++ b/comps/form/utils/init.tsx @@ -38,7 +38,7 @@ export const formInit = (fm: FMLocal, props: FMProps) => { >
- Record Saved + {translate("Record Saved")}
{ }} > {" "} -
Back To List
+
{translate("Back To List")}
)} diff --git a/lang/en.ts b/lang/en.ts index 2d44d4a..3bf2de0 100755 --- a/lang/en.ts +++ b/lang/en.ts @@ -5,4 +5,5 @@ export const langEn = { "Record Saved": "Record Saved", "Search": "Search", "Add Another": "Add Another", + "Back To List": "Back To List" }; diff --git a/lang/id.ts b/lang/id.ts index 60df996..f7a7d9b 100755 --- a/lang/id.ts +++ b/lang/id.ts @@ -7,4 +7,5 @@ export const langId: Record = { "Record Saved": "Data Tersimpan", Search: "Cari", "Add Another": "Tambah Baru", + "Back To List": "Kembali ke List", }; diff --git a/lang/index.ts b/lang/index.ts index c757383..33f767e 100755 --- a/lang/index.ts +++ b/lang/index.ts @@ -15,4 +15,4 @@ export const lang = { base: null as null | Record, }; -export const translate = lang.t; \ No newline at end of file +export const translate = lang.t.bind(lang); \ No newline at end of file