getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Panel layout broken in Esperanto #4159

Closed rasteiner closed 2 years ago

rasteiner commented 2 years ago

Description

The panel layout is broken when visiting it with an esperanto user profile.

Expected behavior
It should not break.

Screenshots
image

To reproduce

  1. Go to /panel/account
  2. Change your language to Esperanto

Your setup

Kirby Version : 3.6.2

Console output
No console output

Your system (please complete the following information)

Additional context
It seems like the direction variable was translated. In fact, in Esperanto the panel Dom reads like this:

<div data-role="admin" data-translation="eo" data-user="***" dir="demaldekstre" class="k-panel k-panel-inside" tabindex="0">...

Notice dir="demaldekstre" instead of dir="ltr"

afbora commented 2 years ago

Summary

Should be fixed the translation.direction key from transifex for eo and ko languages.

bastianallgeier commented 2 years ago

I love your "Expected behaviour" description

bastianallgeier commented 2 years ago

I fixed it for both languages on transifex.