accent icon indicating copy to clipboard operation
accent copied to clipboard

Increase tolerance for Yaml files or increase tolerance for Yaml types

Open BingYanchi opened this issue 10 months ago • 1 comments

In Spigot, the default supported Yaml format is not the common Yaml format.

Them does not meet any of the four requirements for Yaml format.

Many programs use non-standard yaml formats, which makes it impossible to use Accent to localize them.

Example:

gui-area-title: "%queueDisplayName%"
#%serverName% - Raw server name
#%serverDisplayName% - Display name of the server
#%serverMotd% - MOTD of the server
#%serverPlayerNum% - Now players number of the server
#%serverMaxPlayerNum% - Max players number of the server
gui-area-match-server-name: "&a%serverDisplayName%"
gui-area-match-server-description: |-
  &8%queueDisplayName%

  &7Current player: &a%serverPlayerNum%&7 / &a%serverMaxPlayerNum%
  &7Current status: &a%serverMotd%

  &eClick to play

BingYanchi avatar Apr 14 '24 21:04 BingYanchi

Do you know what kind of "flavor" this YAML happens to be? The YAML support right now is pretty rudimentary (always wrapped in double quotes, no references, etc) and the libyaml is not working on arm64 architecture so I’m open on changing the library

simonprev avatar May 07 '24 17:05 simonprev