Intl support
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend, internationalization
Research direction
Start with the LayerStack format utility documentation and the exported defaultLocale/createLocaleSettings entry points shown in the issue. Read the linked settings issue and Svelte UX settings reference to define how global locale and format settings should be exposed. Done means LayerChart supports the planned global internationalization settings without requiring per-chart overrides.
Written by the indexing model from the issue text.
Description
Under the hood, LayerChart uses LayerStack's format util to format dates and numbers.
We have plans to add a settings() context similar to Svelte UX to control this globally (as well as setting default props and global styling refinements).
Until settings is added, you can override the defaultLocale exported from @layerstack/utils
import { createLocaleSettings, defaultLocale } from '@layerstack/utils';
export function localizeLayerChart() {
Object.assign(
defaultLocale,
createLocaleSettings({
locale: 'es',
formats: { ... }
})
)
}
You can also format on a per-chart / component basis:
<script>
import { format } from '@layerstack/utils';
</script>
<Axis format={x => format(x, { locale: 'es' })} />
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 41
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from techniq/layerchart
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
techniq/layerchart#919 ·
Maintainers usually reply within 1 day
-
tab freezes when an awaited value feeding a chart changes (async svelte + kit remote functions)Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
techniq/layerchart#895 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
techniq/layerchart#876 · 3 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
techniq/layerchart#852 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
techniq/layerchart#830 · 1 comment ·
Maintainers usually reply within 1 day
All issues in techniq/layerchart
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
external-issue to-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
diegosouzapw/OmniRoute#15401 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
code-yeongyu/oh-my-openagent#9454 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
smart-village-solutions/sva-studio#1654 ·
Maintainers usually reply within 1 day