alibaba / alibaba/react-intl-universal
urlLocaleKey - problem
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 158
- Avg merge
- 2h 9m
- Merged PRs (30d)
- 1
Description
```
intl.determineLocale({
urlLocaleKey: "lang"
});
```
i use react-router hashHistory
url-example-A(standard): `http://www.xxx.com/index.html?lang=en#/test`
url-example-B(non-standard): `http://www.xxx.com/index.html#/test?lang=en`
url-example-A:
```
window.location.search == '?lang=en'
window.location.hash == '#/test'
```
url-example-B:
```
window.location.search == ''
window.location.hash == '#/test?lang=en'
```
urlLocaleKey only stand by standard-URL ,can u stand by non-standard-URL like "http://www.xxx.com/index.html#/test?lang=en"
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the urlLocaleKey handling in the repository and inspect how window.location.search and window.location.hash are read. Add coverage for both URL examples, with the non-standard hash query resolving the locale as en when the lang key is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- internationalization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100