louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
57.54k stars 5.2k forks source link

RTL Status page #3487

Closed ahmadta721 closed 1 year ago

ahmadta721 commented 1 year ago

โš ๏ธ Please verify that this bug has NOT been raised before.

๐Ÿ›ก๏ธ Security Policy

๐Ÿ“ Describe your problem

Hello I'm having trouble displaying the status page. If the descriptions and names of the monitors are written in right-to-left languages โ€‹โ€‹(RTL). The status page is defined from left to right. It will be displayed correctly only if the admin is logged in and the Uptime-Kuma language is defined as (right to left). In fact, the status page is supposed to be displayed to others, which is not displayed correctly.

๐Ÿ“ Error Message(s) or Log

No response

๐Ÿป Uptime-Kuma Version

1.22.1

๐Ÿ’ป Operating System and Arch

Ubuntu 22.04.2

๐ŸŒ Browser

Google Chrome 115.0.5790.110

๐Ÿ‹ Docker Version

No response

๐ŸŸฉ NodeJS Version

No response

CommanderStorm commented 1 year ago

Could you provide a screenshot of said difference?

I would also like to know this information:

ahmadta721 commented 1 year ago

Hi!

what language is your browsser/OS set to ยป English What language is uptime-kuma set to ยป Persin (farsi) What is the Monitor name (both in the screenshot mentoned above and as text to be able to copy-paste it and reproduce the issue) ยป English because it is known as web page. https://my_domain/status/name when status page name changed to persian ยป We encounter the invalid slug error message.

Screen Shotsยป not ok ok

CommanderStorm commented 1 year ago

Ah now I see. Currently, it is not possible to select the language of a specific status page See https://github.com/louislam/uptime-kuma/issues/2196 https://github.com/louislam/uptime-kuma/issues/1643 and https://github.com/louislam/uptime-kuma/issues/2784 for further details

The status page will always try to mach the language of the system it is running on from my experiments

you can set localStorage.locale to fa which makes the webpage right-aligned: image

CommanderStorm commented 1 year ago

PRs for the other issues mentioned above always welcome, here is our contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

=> this issue can be closed as having more duplicates for these features only creates the risk of creating immortal zombies ^^