biome icon indicating copy to clipboard operation
biome copied to clipboard

Thai Language Formatting Issue

Open mahirocoko opened this issue 7 months ago • 6 comments

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

  • Type "หน้าหลัก".
  • After formatting, the text changes to "หนาหลก".

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

{
  "format_on_save": "on",
  "lsp": {
    "biome": {
      "settings": {
        "require_config_file": true
      }
    }
  },
  "formatter": {
    "external": {
      "command": "./node_modules/@biomejs/biome/bin/biome",
      "arguments": ["format", "--write", "--stdin-file-path", "{buffer_path}"]
    }
  },
  "code_actions_on_format": {
    "source.fixAll.biome": true,
    "source.organizeImports.biome": true
  }
}

https://github.com/user-attachments/assets/05b019a0-ccb4-4193-bcd1-dcc24e5e72ab

mahirocoko avatar Jul 18 '24 04:07 mahirocoko