Skip to content

Conversation

@stefankoegl
Copy link
Member

@stefankoegl stefankoegl commented Aug 3, 2018

To support bidirectional text in the UI (as opposed to content such as podcast names or descriptions), we need to figure out the currently used language in the template (see docs).

{% get_current_language as LANGUAGE_CODE %}

For some (currently still unknown reasons), this always returns en when in the context of the template. In the view (eg wtih django.utils.translation.get_language) the correct language is returned.

I have asked on Stack Overflow about this issue (https://stackoverflow.com/q/51641412/693140), but have not been able to figure it out.

Once this is fixed we can create a rtl-stylesheet that is conditional on the language.

See also

@SiqingYu SiqingYu removed the blocker label Jan 28, 2020
@SiqingYu SiqingYu self-requested a review January 28, 2020 02:39
@SiqingYu SiqingYu removed their request for review February 16, 2020 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants