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 reported: Enum type generation for non-English text missing 'Elements' value. Developer suggested providing prompts for English naming and looking into language conversions. Examples of code in different languages may be helpful.
Suiii
19 Nov, 2025, 12:51

:appwriteupvote:

Suiii
21 Nov, 2025, 15:46

:appwriteupvote:

Suiii
23 Nov, 2025, 08:29

:appwriteupvote:

Suiii
23 Nov, 2025, 11:13

:appwriterocket:

Chirag Aggarwal
27 Nov, 2025, 16:27

will look into language conversions, thanks for pointing this issue

Suiii
27 Nov, 2025, 16:37

it would be cool if enum value is not in English , there is prompt to ask to provide English naming

Chirag Aggarwal
27 Nov, 2025, 18:00

would be awesome, i havnt worked or seen code in different languages yet tho. would be awesome if u can share some examples on how this can look!

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