-
-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thai Language Formatting Issue #3463
Comments
We've had a similar report for the IntelliJ extension and suspect it may be related to output colorization on the CLI. Would you mind passing |
Thank you for the suggestion, but unfortunately, turning off colors with Screen.Recording.2567-07-18.at.11.39.37.mov |
Got access to a laptop and was able to reproduce your issue. Similarly to biomejs/biome-intellij#71, this seems to happen only when using STDIN, calling |
Welp, it's actually the other way around. // หน้าหลัก
const a = 1 Forcing colorscat test.tsx | biome format --write --colors=force --stdin-file-path test.tsx
// หน้าหลัก
const a = 1; Disabling colorscat test.tsx| biome format --write --colors=off --stdin-file-path test.tsx
// หนาหลก
const a = 1; Would you ming trying this too?
|
Thank you for the suggestion. I tried forcing colors with --colors=force. However, neither approach resolved the issue. When forcing colors: �[0m'use client'
import type { FC } from 'react'
interface IComponentNameProps {}
const ComponentName: FC<IComponentNameProps> = () => {
return <div>หน้า</div>
}
export default ComponentName
�[0m It still produces the incorrect output. However, these options did help with resolving the issue related to the language. |
This is what I believe is happening:
I'll move this issue to the main repo as I don't believe it's specific to the extension |
I am experiencing an issue with the Biome-Zed plugin where Thai language text is not being formatted correctly. Specifically, the word "หน้าหลัก" is being changed to "หนาหลก". This is causing readability issues for Thai users.
Steps to Reproduce
Expected Behavior
The text "หน้าหลัก" should remain as it is and not be altered to "หนาหลก".
Actual Behavior
The text "หน้าหลัก" is incorrectly formatted to "หนาหลก".
Environment
Biome-Zed Version: [0.143.7]
Operating System: [macOS with M1 chip]
My Setting
349785754-be501ca7-b15c-480b-91b4-ae9719f4b9a4.mov
The text was updated successfully, but these errors were encountered: