chore: changelog update
This commit is contained in:
parent
970731ee6f
commit
abac05d844
4 changed files with 24 additions and 23 deletions
|
@ -8,6 +8,7 @@
|
||||||
#### Changed
|
#### Changed
|
||||||
|
|
||||||
- Setting Path.render() no longer raises an info message
|
- Setting Path.render() no longer raises an info message
|
||||||
|
- Always raise debug, but only store it whend debug is enabled
|
||||||
|
|
||||||
### simon
|
### simon
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ unreleased:
|
||||||
Changed:
|
Changed:
|
||||||
core:
|
core:
|
||||||
- Setting Path.render() no longer raises an info message
|
- Setting Path.render() no longer raises an info message
|
||||||
|
- Always raise debug, but only store it whend debug is enabled
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
simon:
|
simon:
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Setting Path.render() no longer raises an info message
|
- Setting Path.render() no longer raises an info message
|
||||||
|
- Always raise debug, but only store it whend debug is enabled
|
||||||
|
|
||||||
## 2.20.0 (2022-01-24)
|
## 2.20.0 (2022-01-24)
|
||||||
|
|
||||||
|
|
|
@ -2,28 +2,26 @@ import themes from 'shared/themes/index.js'
|
||||||
import LocaleIcon from 'shared/components/icons/i18n.js'
|
import LocaleIcon from 'shared/components/icons/i18n.js'
|
||||||
import { languages } from 'pkgs/i18n'
|
import { languages } from 'pkgs/i18n'
|
||||||
|
|
||||||
const LocalePicker = ({ app }) => {
|
const LocalePicker = ({ app }) => (
|
||||||
return (
|
<div className="dropdown">
|
||||||
<div className="dropdown">
|
<div tabIndex="0" className={`
|
||||||
<div tabIndex="0" className={`
|
m-0 btn btn-neutral flex flex-row gap-2
|
||||||
m-0 btn btn-neutral flex flex-row gap-2
|
sm:btn-ghost
|
||||||
sm:btn-ghost
|
hover:bg-neutral hover:border-neutral-content
|
||||||
hover:bg-neutral hover:border-neutral-content
|
`}>
|
||||||
`}>
|
<LocaleIcon />
|
||||||
<LocaleIcon />
|
<span>{languages[app.locale]}</span>
|
||||||
<span>{languages[app.locale]}</span>
|
</div>
|
||||||
</div>
|
<ul tabIndex="0" className="p-2 shadow menu dropdown-content bg-base-100 rounded-box w-52">
|
||||||
<ul tabIndex="0" className="p-2 shadow menu dropdown-content bg-base-100 rounded-box w-52">
|
{Object.keys(app.locales).map(locale => (
|
||||||
{Object.keys(app.locales).map(locale => (
|
<li key={locale}>
|
||||||
<li key={locale}>
|
<button onClick={() => app.changeLocale(locale)} className="btn btn-ghost text-base-content hover:bg-base-200">
|
||||||
<button onClick={() => app.changeLocale(locale)} className="btn btn-ghost text-base-content hover:bg-base-200">
|
{languages[locale]}
|
||||||
{languages[locale]}
|
</button>
|
||||||
</button>
|
</li>
|
||||||
</li>
|
))}
|
||||||
))}
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
)
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default LocalePicker
|
export default LocalePicker
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue