В меню переключения языков добавлена ссылка на сервис переводов

This commit is contained in:
ErickSkrauch 2017-01-08 00:55:58 +03:00
parent 8e06adbf21
commit ac425431ed
9 changed files with 31 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import prompt from 'prompt';
const MESSAGES_PATTERN = `${__dirname}/../dist/messages/**/*.json`; const MESSAGES_PATTERN = `${__dirname}/../dist/messages/**/*.json`;
const LANG_DIR = `${__dirname}/../src/i18n`; const LANG_DIR = `${__dirname}/../src/i18n`;
const DEFAULT_LOCALE = 'en'; const DEFAULT_LOCALE = 'en';
const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'uk'); const SUPPORTED_LANGS = [DEFAULT_LOCALE].concat('ru', 'be', 'pt', 'uk');
/** /**
* Aggregates the default messages that were extracted from the app's * Aggregates the default messages that were extracted from the app's

View File

@ -62,6 +62,11 @@ class LangMenu extends Component {
{this.renderLangLabel(lang)} {this.renderLangLabel(lang)}
</li> </li>
))} ))}
<li className={styles.improveTranslatesLink}>
<a href="https://ely-translates.oneskyapp.com/collaboration/project?id=201323" target="_blank">
<Message {...messages.improveTranslations} />
</a>
</li>
</ul> </ul>
</div> </div>

View File

@ -1,3 +1,4 @@
{ {
"siteLanguage": "Site language" "siteLanguage": "Site language",
"improveTranslations": "Improve translations"
} }

View File

@ -111,6 +111,24 @@
background-image: url('~icons/flag_uk.svg'); background-image: url('~icons/flag_uk.svg');
} }
.improveTranslatesLink {
font-size: 11px;
text-align: center;
padding: 5px 10px;
a {
color: #9a9a9a;
border-bottom: 1px dotted #9a9a9a;
text-decoration: none;
transition: .25s;
&:hover {
border-bottom-color: #777;
color: #777;
}
}
}
.trigger { .trigger {
color: #666; color: #666;
border-bottom: 1px dotted #666; border-bottom: 1px dotted #666;

View File

@ -91,6 +91,7 @@
"components.contact.youMessageReceived": "Ваш зварот у форму зваротнай сувязі атрыман. Мы адкажам вам у бліжэйшы час. Адказ прыйдзе на ўказаны вамі E-mail:", "components.contact.youMessageReceived": "Ваш зварот у форму зваротнай сувязі атрыман. Мы адкажам вам у бліжэйшы час. Адказ прыйдзе на ўказаны вамі E-mail:",
"components.footerMenu.contactUs": "Зваротная сувязь", "components.footerMenu.contactUs": "Зваротная сувязь",
"components.footerMenu.rules": "Правілы сайта", "components.footerMenu.rules": "Правілы сайта",
"components.langMenu.improveTranslations": "Палепшыць пераклады",
"components.langMenu.siteLanguage": "Мова сайта", "components.langMenu.siteLanguage": "Мова сайта",
"components.profile.accountDescription": "Дзякуючы акаўнту Ely.by вы можаце атрымаць доступ да шматлікіх рэсурсаў, звязаных з Minecraft. Беражыце свой акаўнт, выкарыстоўвайце надзейны пароль і рэгулярна яго змяняйце.", "components.profile.accountDescription": "Дзякуючы акаўнту Ely.by вы можаце атрымаць доступ да шматлікіх рэсурсаў, звязаных з Minecraft. Беражыце свой акаўнт, выкарыстоўвайце надзейны пароль і рэгулярна яго змяняйце.",
"components.profile.accountPreferencesTitle": "Налады акаўнта Ely.by", "components.profile.accountPreferencesTitle": "Налады акаўнта Ely.by",

View File

@ -91,6 +91,7 @@
"components.contact.youMessageReceived": "Your message was received. We will respond to you shortly. The answer will come to your E-mail:", "components.contact.youMessageReceived": "Your message was received. We will respond to you shortly. The answer will come to your E-mail:",
"components.footerMenu.contactUs": "Contact Us", "components.footerMenu.contactUs": "Contact Us",
"components.footerMenu.rules": "Rules", "components.footerMenu.rules": "Rules",
"components.langMenu.improveTranslations": "Improve translations",
"components.langMenu.siteLanguage": "Site language", "components.langMenu.siteLanguage": "Site language",
"components.profile.accountDescription": "Ely.by account allows you to get access to many Minecraft resources. Please, take care of your account safety. Use secure password and change it regularly.", "components.profile.accountDescription": "Ely.by account allows you to get access to many Minecraft resources. Please, take care of your account safety. Use secure password and change it regularly.",
"components.profile.accountPreferencesTitle": "Ely.by account preferences", "components.profile.accountPreferencesTitle": "Ely.by account preferences",

View File

@ -93,6 +93,7 @@
"components.footerMenu.rules": "Regras", "components.footerMenu.rules": "Regras",
"components.profile.back": "Voltar", "components.profile.back": "Voltar",
"components.profile.accountDescription": "A conta Ely.by lhe d\u00e1 acesso a muitos recursos do Minecraft, mas cuidado com a sua conta e mude a senha regularmente.", "components.profile.accountDescription": "A conta Ely.by lhe d\u00e1 acesso a muitos recursos do Minecraft, mas cuidado com a sua conta e mude a senha regularmente.",
"components.langMenu.improveTranslations": "",
"components.langMenu.siteLanguage": "Idioma do site", "components.langMenu.siteLanguage": "Idioma do site",
"components.profile.accountPreferencesTitle": "Prefer\u00eancias da conta Ely.by", "components.profile.accountPreferencesTitle": "Prefer\u00eancias da conta Ely.by",
"components.profile.changeEmail.alreadyReceivedCode": "J\u00e1 recebeu o c\u00f3digo", "components.profile.changeEmail.alreadyReceivedCode": "J\u00e1 recebeu o c\u00f3digo",

View File

@ -91,6 +91,7 @@
"components.contact.youMessageReceived": "Ваше обращение в форму обратной связи получено. Мы ответим вам в ближайшее время. Ответ придёт на указанный вами Email:", "components.contact.youMessageReceived": "Ваше обращение в форму обратной связи получено. Мы ответим вам в ближайшее время. Ответ придёт на указанный вами Email:",
"components.footerMenu.contactUs": "Обратная связь", "components.footerMenu.contactUs": "Обратная связь",
"components.footerMenu.rules": "Правила сайта", "components.footerMenu.rules": "Правила сайта",
"components.langMenu.improveTranslations": "Улучшить переводы",
"components.langMenu.siteLanguage": "Язык сайта", "components.langMenu.siteLanguage": "Язык сайта",
"components.profile.accountDescription": "Благодаря аккаунту Ely.by вы можете получить доступ ко многим ресурсам, связанным с Minecraft. Берегите свой аккаунт, используйте надёжный пароль и регулярно его меняйте.", "components.profile.accountDescription": "Благодаря аккаунту Ely.by вы можете получить доступ ко многим ресурсам, связанным с Minecraft. Берегите свой аккаунт, используйте надёжный пароль и регулярно его меняйте.",
"components.profile.accountPreferencesTitle": "Настройки аккаунта Ely.by", "components.profile.accountPreferencesTitle": "Настройки аккаунта Ely.by",

View File

@ -91,6 +91,7 @@
"components.contact.youMessageReceived": "Ваше звернення отримано. Ми відповімо вам найближчим часом. Відповідь прийде на вказаний вами E-mail:", "components.contact.youMessageReceived": "Ваше звернення отримано. Ми відповімо вам найближчим часом. Відповідь прийде на вказаний вами E-mail:",
"components.footerMenu.contactUs": "Зворотній зв'язок", "components.footerMenu.contactUs": "Зворотній зв'язок",
"components.footerMenu.rules": "Правила сайту", "components.footerMenu.rules": "Правила сайту",
"components.langMenu.improveTranslations": "",
"components.langMenu.siteLanguage": "Мова сайту", "components.langMenu.siteLanguage": "Мова сайту",
"components.profile.accountDescription": "Завдяки аккаунту Ely.by ви можете отримати доступ до багатьох ресурсів, пов'язаних з Minecraft. Бережіть свій аккаунт, використовуйте надійний пароль і регулярно його змінюйте.", "components.profile.accountDescription": "Завдяки аккаунту Ely.by ви можете отримати доступ до багатьох ресурсів, пов'язаних з Minecraft. Бережіть свій аккаунт, використовуйте надійний пароль і регулярно його змінюйте.",
"components.profile.accountPreferencesTitle": "Налаштування акаунту Ely.by", "components.profile.accountPreferencesTitle": "Налаштування акаунту Ely.by",