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

Make an English version of the site #102

Closed
ashikov opened this issue Aug 25, 2022 · 6 comments
Closed

Make an English version of the site #102

ashikov opened this issue Aug 25, 2022 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ashikov
Copy link
Contributor

ashikov commented Aug 25, 2022

No description provided.

@ashikov ashikov added enhancement New feature or request help wanted Extra attention is needed labels Aug 25, 2022
@askorutin26
Copy link
Contributor

Здравствуйте. Попытался сделать, и в целом все получилось, но есть вопросы. Перевод профессий стоит сделать? Сейчас через yml файл работает, вынести это в locales? Ну и предыдущий issues видел, страница со школами тоже не работает пока.

@ashikov
Copy link
Contributor Author

ashikov commented Sep 6, 2022

@seth2810 не совсем уверен, но можешь ли ты ответить на вопросы?)

@seth2810
Copy link

seth2810 commented Sep 7, 2022

@askorutin26 тут без произвольного кода не обойдется. Смотри как делал я, когда в hexlet.guides была похожая задача с постами:

  • все страницы с переводами разделяем по локалям и кладем в отдельную папку в data;
  • дальше есть какой-то код, который получает список в зависимости от локали;
  • а уже конкретно на странице извлекается нужный item или объект, в твоем случае профессия, которую мы пробрасываем через getStaticProps.

@seth2810
Copy link

seth2810 commented Sep 7, 2022

Ну или еще вариант, пойти как в предыдущем issue и делать два ключа под каждую локаль, что кмк выглядит весьма "костыльно", и при росте локалей будет стрелять нам в ногу.

@askorutin26
Copy link
Contributor

@seth2810 Спасибо за помощь! Буду пробовать.

@acidmaksim acidmaksim changed the title Запилить английскую версию сайта Make an English version of the site Sep 13, 2022
@ashikov
Copy link
Contributor Author

ashikov commented Sep 13, 2022

Передумали делать

@ashikov ashikov closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants