Custom Locale to generate One-Character locale code

When creating custom locale, This will automatically generate a two-character Locale code.
We would like to update our website from en-us format to en/us.
Is it possible to generate One-Character local code with language and region seperately ? OR
Is there any alternative solution to change format from " - " to " / " ?
Looking forward to hearing from you. Thanks

Hello @hegu

Creating one character locale code with language and region separately is not possible in Prismic. You can create a custom language with only locale code like, instead of "en-us," you can have "en."

But this complete use-case can be handled on the Front end by applying custom functions.

What framework are you using?