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

View file

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