posit-dev / posit-dev/py-shiny
input_numeric() warning when setting a too high value ignores html language
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Hi,
both my OS and browser are in german but I would prefer to have my shiny app completely in english.
When I now set a maximum or minimum value for a numeric input and type a number larger or smaller than that, the warning I get is in german. I used lang="en" of the page_fluid function to set my document language to english but this does not seem to work.
This is how I used the language tag:
app_ui = ui.page_fluid(
otherelements()
, lang='en'
)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with ui.page_fluid(lang='en') and an input_numeric control configured with minimum or maximum bounds. Check how the browser warning language is determined when an invalid value is entered. Done means the warning respects the page language setting and remains correct for the reported German-browser, English-app scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100