A
A
Alexander Balya2017-03-24 12:08:44
Internationalization and localization
Alexander Balya, 2017-03-24 12:08:44

How to translate linter in Atom?

I use linters in Atom, in particular for SCSS and JS. The thing is cool, but I want to make it more convenient and translate the linter messages into Russian. Unfortunately, I don't know how to do it right. Can someone tell me?
20aa1ff881b64e3e92ae2a15d141d6d5.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Balya, 2018-10-11
@Balya

It's better to use Stylelint. All rules for the config can be found here: https://stylelint.io/user-guide/rules/
The config will look something like this:

"declaration-colon-space-before": [
            "never",
            {
                "message": "Не ставь пробел перед двоеточием в правилах"
            }
        ],
        "font-family-name-quotes": [
            "always-unless-keyword",
            {
                "message": "Название шрифта нужно заключить в кавычки, только если это не стандартное семейство"
            }
        ],
        "font-weight-notation": [
            "numeric",
            {
                "message": "Укажи плотность шрифта (жирность) числом, а не словом"
            }
        ],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question