Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce function registry #199

Open
1 task
samuelstroschein opened this issue Sep 18, 2024 — with Linear · 1 comment
Open
1 task

introduce function registry #199

samuelstroschein opened this issue Sep 18, 2024 — with Linear · 1 comment
Assignees

Comments

Copy link
Member

samuelstroschein commented Sep 18, 2024

Context

Fink and paraglide started using functions like plural. The signature between both implementations needs to be identical.

Proposal

Introduce a function registry with v2 to avoid chaos.

  • remove plural logic from ui components
	private _getPluralCategories = (): string[] | undefined => {
		return this.message?.locale
			? [...new Intl.PluralRules(this.message.locale).resolvedOptions().pluralCategories, "*"]
			: undefined
	}
@samuelstroschein samuelstroschein self-assigned this Sep 18, 2024
Copy link
Member Author

moved from sdk v2 to dedicated project because

CleanShot 2024-09-25 at 09.34.39@2x.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant