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

Create more flexible localisation #13

Open
bjendres opened this issue Jul 26, 2023 · 1 comment
Open

Create more flexible localisation #13

bjendres opened this issue Jul 26, 2023 · 1 comment
Labels

Comments

@bjendres
Copy link
Member

Currently the new backend (in CiviCRM) uses the ts() (or E::ts()) function for translation, but that means that the target language is defined by the contact linked to the API, not the frontend user.

We should allow the frontend to pass the locale it requests the form to be in: labels, options, error messages, etc.

This was rudimentarily implemented in the RemoteEvent extension, see HERE and used HERE, albeit not all the way.

@jensschuppe
Copy link
Contributor

This has now been fully implemented in systopia/de.systopia.remoteevent#69 and should be reviewed for which parts can be migrated to de.systopia.remotetools.

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

No branches or pull requests

2 participants