fix: typos and ignore some false typos

This commit is contained in:
Methapon2001 2025-02-25 17:43:41 +07:00
parent 9590803e40
commit 45482c3a1b
3 changed files with 5 additions and 3 deletions

2
.typos.toml Normal file
View file

@ -0,0 +1,2 @@
[default]
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"]

View file

@ -341,7 +341,7 @@ function nationality(text: string, lang: "th" | "en" = "en") {
case "th": case "th":
return ( return (
{ {
["THA"]: "ไทย", ["THA"]: "ไทย", // spellchecker:disable-line
["MMR"]: "เมียนมา", ["MMR"]: "เมียนมา",
["LAO"]: "ลาว", ["LAO"]: "ลาว",
["KHM"]: "กัมพูชา", ["KHM"]: "กัมพูชา",
@ -353,7 +353,7 @@ function nationality(text: string, lang: "th" | "en" = "en") {
default: default:
return ( return (
{ {
["THA"]: "Thai", ["THA"]: "Thai", // spellchecker:disable-line
["MMR"]: "Myanmar", ["MMR"]: "Myanmar",
["LAO"]: "Laos", ["LAO"]: "Laos",
["KHM"]: "Khmer", ["KHM"]: "Khmer",

View file

@ -536,7 +536,7 @@ export class CreditNoteController extends Controller {
if (record.creditNoteStatus !== CreditNoteStatus.Waiting) { if (record.creditNoteStatus !== CreditNoteStatus.Waiting) {
throw new HttpError( throw new HttpError(
HttpStatus.BAD_REQUEST, HttpStatus.BAD_REQUEST,
"Accpeted credit note cannot be deleted", "Accepted credit note cannot be deleted",
"creditNoteAcceptedNoDelete", "creditNoteAcceptedNoDelete",
); );
} }