-
Notifications
You must be signed in to change notification settings - Fork 275
Feature/custom translations frontend #857
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
base: main
Are you sure you want to change the base?
Feature/custom translations frontend #857
Conversation
10cd759
to
d285bd1
Compare
4ff16fa
to
81fd1ed
Compare
src/frontend/apps/impress/src/features/language/hooks/useTranslationsCustomizer.ts
Outdated
Show resolved
Hide resolved
src/frontend/apps/impress/src/features/language/hooks/useTranslationsCustomizer.ts
Outdated
Show resolved
Hide resolved
src/frontend/apps/impress/src/features/language/hooks/useTranslationsCustomizer.ts
Outdated
Show resolved
Hide resolved
b9b16aa
to
06b91a1
Compare
Part of customization PoC
Part of customization PoC
Part of customization PoC
Part of customization PoC
06b91a1
to
af92119
Compare
if (request.method().includes('GET')) { | ||
await route.fulfill({ | ||
json: { | ||
...config, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...config, | |
...CONFIG, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem that I see is that we change the pattern of the application, all the features used /api/
to have a clear separation of concern, and we use react-query
.
By leveraging react-query
, no need to do tricks with useRef
as react-query
has an inner cache, it will be more readable by reducing conditions
and try catch
.
Adds ability to inject/override translations at runtime.
Moves contents of
docs/theming.md
intodocs/customization.md
for a more unified documentation.