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

Styling a specific language #171

Open
TiagoPerdigao1983 opened this issue Feb 8, 2021 · 1 comment
Open

Styling a specific language #171

TiagoPerdigao1983 opened this issue Feb 8, 2021 · 1 comment

Comments

@TiagoPerdigao1983
Copy link

Since writing in German takes more space than in English, is it possible to use CSS to style only one specific language, like German for example?

My Gatsby config file:

module.exports = {
plugins: [
{
resolve: gatsby-plugin-intl,
options: {
// language JSON resource path
path: ${__dirname}/src/intl,
// supported language
languages: [de, en, pt],
// language file path
defaultLanguage: de,
},
},
],
};

I use a single style file for CSS.

Thank you for your help.

@dexterurbanski
Copy link

yes, you can use this https://css-tricks.com/almanac/selectors/l/lang/

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

2 participants