[SUGGESTION]: Overwrite server settings in a specific counter
Closed this issue · 0 comments
eduardozgz commented
Add a way to ovewrite default server settings in any counter
The configuration will be in a base64 encoded JSON, placed right before the counter name
Example:
{
"locale": "en",
"shortNumber": 1,
"digits": ["0","1","2","3","4","5","6","7","8","9"]
}
This object must be converted to base64:
ewogICAgImxvY2FsZSI6ICJlbiIsCiAgICAic2hvcnROdW1iZXIiOiAxLAogICAgImRpZ2l0cyI6IFsiMCIsIjEiLCIyIiwiMyIsIjQiLCI1IiwiNiIsIjciLCI4IiwiOSJdICAgCn0=
And then, the base64 config must be placed before the name, separated with :
{clock:Europe/Madrid}
-> {ewogICAgImxvY2FsZSI6ICJlbiIsCiAgICAic2hvcnROdW1iZXIiOiAxLAogICAgImRpZ2l0cyI6IFsiMCIsIjEiLCIyIiwiMyIsIjQiLCI1IiwiNiIsIjciLCI4IiwiOSJdICAgCn0=:clock:Europe/Madrid}
Possible configurations:
Key | Type | Description |
---|---|---|
locale | string | Any locale listed here |
shortNumber | number | -1 to disable the compact notation, any value above -1 to enable it |
digits | string[] | An array of strings, the digits of the count will be replaced by the specified digits here, if a digit of the count is 0, it will be replaced with the value of the index 0, if the digit is 1 then with the index 1, and so on, here can be plain numbers (like in the example of above) or emojis |
Website to setup this: https://member-counter.eduardozgz.com/utils/overwrite-settings