We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
we don't add a dir prop to the HTML element.
dir
In
- <html lang="%lang%"> + <html lang="%lang%" dir="%dir%">
- return resolve(event, { transformPageChunk: ({ html }) => html.replace('%lang%', locale) }); + const direction = (new Intl.Locale(locale)).textInfo.direction + return resolve(event, { transformPageChunk: ({ html }) => html.replace('%lang%', locale).replace('%dir%', direction) });
Intl.Locale ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale
The text was updated successfully, but these errors were encountered:
I changed app.d.ts file content and seems it works correctly.
declare global { namespace App { // old stuff } namespace Intl { interface Locale { textInfo: { direction: 'rtl' | 'lrt'; }; } } }
Sorry, something went wrong.
No branches or pull requests
Describe the problem
we don't add a
dir
prop to the HTML element.Describe the proposed solution
In
Intl.Locale ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale
Have you checked if this issue has already been raised?
Code of Conduct
The text was updated successfully, but these errors were encountered: