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

support per-language CSS / fonts (for Japanese etc) #2271

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

sensei-hacker
Copy link
Collaborator

@sensei-hacker sensei-hacker commented Dec 2, 2024

Some language translations need different CSS, such as an appropriate font.

That's done by setting the current language in the root html tag, such as:
[html lang="en"]

Or
[html lang="ja"]

This PR adds a case to allow:
[html i18n_lang="currentLanguage"]

This will allow an appropriate font to be used for Japanese ( #2250 ), and any other language-specific CSS.
To have an example of usage, I have added one line to the CSS to set an appropriate font when Japanese is selected.

@sensei-hacker sensei-hacker force-pushed the language_specific_font branch 3 times, most recently from da5703d to 090dd06 Compare December 2, 2024 04:20
@mmosca
Copy link
Collaborator

mmosca commented Dec 13, 2024

Needs to add currentLanguage to recently merged chinese translation

@sensei-hacker sensei-hacker force-pushed the language_specific_font branch 9 times, most recently from 09d3bb1 to 516ee8c Compare December 13, 2024 19:04
@sensei-hacker sensei-hacker reopened this Dec 13, 2024
@sensei-hacker
Copy link
Collaborator Author

Needs to add currentLanguage to recently merged chinese translation

That has been added.

@mmosca mmosca merged commit f454d6e into iNavFlight:master Dec 13, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants