kubernetes / kubernetes/website
Set text direction based on localization text direction
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 15.7k
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 204
Description
**This is a Feature Request**
**What would you like to be added**
Edit the [Hugo layout template(s)](https://gohugo.io/templates/) for the site to set `dir` on the `html` element, so that browsers know what text direction is in use.
**Why is this needed**
This change would support or enable https://github.com/kubernetes/website/issues/22730 and https://github.com/kubernetes/website/pull/46042
**Comments**
/area localization
/kind feature
/help
/triage accepted
You should work on this if you have the capacity to and you already understand a little about Hugo templating. The change may not be suitable for a contributor who is new to working with Hugo and Hugo themes.
Contributor guide
Research direction
Start with the Hugo layout template(s) linked in the issue and review the related issue #22730 and pull request #46042 for the expected localization behavior. Update the html element so its dir attribute reflects the site's text direction, then verify the rendered pages use the correct direction for localized content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- hugo
- Domain
- documentation, internationalization, localization
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100