diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..5664db5 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[default] +extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"] diff --git a/src/controllers/00-doc-template-controller.ts b/src/controllers/00-doc-template-controller.ts index 1726bf0..e375c55 100644 --- a/src/controllers/00-doc-template-controller.ts +++ b/src/controllers/00-doc-template-controller.ts @@ -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", diff --git a/src/controllers/08-credit-note-controller.ts b/src/controllers/08-credit-note-controller.ts index b094f84..f0e3fbd 100644 --- a/src/controllers/08-credit-note-controller.ts +++ b/src/controllers/08-credit-note-controller.ts @@ -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", ); }