Add ms (Malay / Bahasa Melayu) to the supported language enum
#7057
fuxun2008
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What
Please add
ms(Malay, ISO 639-1) to thelanguageenum indocs.json→navigation.languages[].language.Why
We run a multi-language help center (help.dingtalk.io) with en / zh / ja / id already live, and we are adding Malay as the 5th language. All pages are translated and mirrored under a
/ms/path — the content is ready.The blocker:
msis not in the schemalanguageenum, so registering the language block fails schema validation / prebuild.Malay is one of the most widely spoken languages in Southeast Asia (~290M speakers across Malaysia, Brunei, and Singapore, and closely intelligible with Indonesian). Since
id(Indonesian) is already supported, adding its siblingmsis a natural fit.Current workaround (and why it is not ideal)
To ship in the meantime, we borrow the
uz(Uzbek) enum code to pass validation — URLs still derive from the/ms/path — and patch the built-in UI chrome (search, table of contents, "copy page", pagination aria labels) back to Malay via site-level JavaScript.It works, but it is fragile:
docs.jsonno longer reflects the real language.Ask
Add
msto thelanguageenum so we can register the block natively and drop the workaround. Happy to help test.All reactions