Browse Source

translate

hailey
MSI\2Fi-Staff 1 year ago
parent
commit
f19dde2b2a
6 changed files with 34 additions and 5 deletions
  1. +1
    -1
      .env.development
  2. +11
    -1
      src/app/(main)/bssp/page.tsx
  3. +1
    -1
      src/app/(main)/invoice/page.tsx
  4. +1
    -1
      src/components/InvoiceSearch/InvoiceSearch.tsx
  5. +2
    -1
      src/i18n/en/bssp.json
  6. +18
    -0
      src/i18n/zh/Invoice.json

+ 1
- 1
.env.development View File

@@ -1,2 +1,2 @@
API_URL=http://localhost:8090/api
API_URL=http://192.168.244.204:8091/api
NEXTAUTH_SECRET=secret NEXTAUTH_SECRET=secret

+ 11
- 1
src/app/(main)/bssp/page.tsx View File

@@ -18,13 +18,23 @@ const Bssp: React.FC = async () => {
flexWrap="wrap" flexWrap="wrap"
rowGap={2} rowGap={2}
> >
<Typography variant="h4" marginInlineEnd={2}>
<Typography variant="h1" marginInlineEnd={2}>
{t("Bssp")} {t("Bssp")}
</Typography> </Typography>


</Stack> </Stack>
<Suspense> <Suspense>
{t("SSSSS")} {t("SSSSS")}
<a href= "http://localhost:3000/bssp">{t("link")}</a>

<form>
<label>{t("First name:")}</label><br/>
<input type="text" id="fname" name="fname"/><br/>
<label>{t("Last name:")}</label><br/>
<input type="text" id="lname" name="lname"/><br/><br/>
<input type="submit" value="Submit"/>
</form>

</Suspense> </Suspense>
</> </>
) )


+ 1
- 1
src/app/(main)/invoice/page.tsx View File

@@ -36,7 +36,7 @@ const Invoice: React.FC = async () => {
</Button> */} </Button> */}
</Stack> </Stack>
<Suspense fallback={<InvoiceSearch.Loading />}> <Suspense fallback={<InvoiceSearch.Loading />}>
<I18nProvider namespaces={['invoices','common']}>
<I18nProvider namespaces={['Invoice','common']}>
<InvoiceSearch /> <InvoiceSearch />
</I18nProvider> </I18nProvider>
</Suspense> </Suspense>


+ 1
- 1
src/components/InvoiceSearch/InvoiceSearch.tsx View File

@@ -44,7 +44,7 @@ type SearchParamNames2 = keyof SearchQuery2;


const InvoiceSearch: React.FC<Props> = ({ issuedInvoice, receivedInvoice, invoices }) => { const InvoiceSearch: React.FC<Props> = ({ issuedInvoice, receivedInvoice, invoices }) => {
// console.log(invoices) // console.log(invoices)
const { t } = useTranslation("invoices");
const { t } = useTranslation("Invoice");
const [tabIndex, setTabIndex] = useState(0); const [tabIndex, setTabIndex] = useState(0);


const [filteredIssuedInvoices, setFilteredIssuedInvoices] = useState(issuedInvoice); const [filteredIssuedInvoices, setFilteredIssuedInvoices] = useState(issuedInvoice);


+ 2
- 1
src/i18n/en/bssp.json View File

@@ -1,3 +1,4 @@
{ {
"SSSSS" : "AAAAAA"
"SSSSS" : "hello world",
"aaa" : "bbb"
} }

+ 18
- 0
src/i18n/zh/Invoice.json View File

@@ -0,0 +1,18 @@
{
"Invoice No" : "發票號碼",
"Project Code" : "專案程式碼",
"Team" : "團隊",
"Invoice" : "發票",
"Total Issued Amount (HKD):" : "發行總額(港幣):",
"Total Received Amount (HKD):" : "總收款金額(港幣):",
"Issue Date" : "簽發日期",
"Issue Date To" : "簽發日期至",
"Settle Date" : "交割日期",
"Settle Date To" : "確定日期至",
"Edit" : "編輯",
"Project Name" : "項目名稱",
"Amount (HKD)" : "金額(港幣)",
"Actual Received Amount (HKD)" : "實際收到金額(港幣)",
"Import Invoice Issue Summary" : "進口發票問題摘要",
"Import Invoice Amount Receive Summary" : "進口發票金額接收摘要"
}

Loading…
Cancel
Save