Skip to content
Back

Bug Report: type generation for enum of non English text missing Elements value

  • 0
  • Self Hosted
  • Tools
  • Web
  • Cloud
Suiii
18 Nov, 2025, 06:51

👟 Reproduction steps

in the enum element value, instead of English, use another language (Khmer), in my case Khmer text.

TypeScript

export enum ProvinceType {
     = "រាជធានី",
     = "ខេត្ត",
    TEST = "Test"
}

👍 Expected behavior

TypeScript
export enum ProvinceType {
    CAPITAL = "រាជធានី",
    PROVINCE = "ខេត្ត",
    TEST = "Test"
}

Maybe configurable mapping enum value ?

👎 Actual Behavior

Missing value

TypeScript

export enum ProvinceType {
     = "រាជធានី",
     = "ខេត្ត",
    TEST = "Test"
}
TL;DR
Bug report regarding type generation for an enum with non-English text missing elements value. The developer wants to use Khmer text but it's not displaying correctly. Expected behavior is to have the enum values correctly displayed. Suggested solution is a configurable mapping for enum values.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more