Skip to content

Add Russian translation file (ru.ts) #3469

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

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"packages/gitbook": {
"name": "gitbook",
"version": "0.14.1",
"version": "0.15.0",
"dependencies": {
"@gitbook/api": "catalog:",
"@gitbook/cache-tags": "workspace:*",
Expand Down Expand Up @@ -146,7 +146,7 @@
},
"packages/icons": {
"name": "@gitbook/icons",
"version": "0.2.1",
"version": "0.2.2",
"bin": {
"gitbook-icons": "./bin/gitbook-icons.js",
},
Expand All @@ -166,7 +166,7 @@
},
"packages/openapi-parser": {
"name": "@gitbook/openapi-parser",
"version": "2.2.2",
"version": "3.0.0",
"dependencies": {
"@scalar/openapi-parser": "^0.18.0",
"@scalar/openapi-types": "^0.1.9",
Expand All @@ -181,7 +181,7 @@
},
"packages/react-contentkit": {
"name": "@gitbook/react-contentkit",
"version": "0.7.2",
"version": "0.7.3",
"dependencies": {
"@gitbook/api": "catalog:",
"@gitbook/icons": "workspace:*",
Expand All @@ -196,7 +196,7 @@
},
"packages/react-math": {
"name": "@gitbook/react-math",
"version": "0.6.0",
"version": "0.6.1",
"bin": {
"gitbook-math": "./bin/gitbook-math.js",
},
Expand All @@ -213,7 +213,7 @@
},
"packages/react-openapi": {
"name": "@gitbook/react-openapi",
"version": "1.3.4",
"version": "1.3.5",
"dependencies": {
"@gitbook/openapi-parser": "workspace:*",
"@scalar/api-client-react": "^1.3.16",
Expand Down Expand Up @@ -246,7 +246,7 @@
"react-dom": "^19.0.0",
},
"catalog": {
"@gitbook/api": "^0.130.0",
"@gitbook/api": "^0.131.0",
},
"packages": {
"@ai-sdk/provider": ["@ai-sdk/[email protected]", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-0M+qjp+clUD0R1E5eWQFhxEvWLNaOtGQRUaBn8CUABnSKredagq92hUS9VjOzGsTm37xLfpaxl97AVtbeOsHew=="],
Expand Down Expand Up @@ -611,7 +611,7 @@

"@fortawesome/fontawesome-svg-core": ["@fortawesome/[email protected]", "", { "dependencies": { "@fortawesome/fontawesome-common-types": "6.6.0" } }, "sha512-KHwPkCk6oRT4HADE7smhfsKudt9N/9lm6EJ5BVg0tD1yPA5hht837fB87F8pn15D8JfTqQOjhKTktwmLMiD7Kg=="],

"@gitbook/api": ["@gitbook/api@0.130.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-nfAPfTISUou+hJPZLrBsuUSSaHEeWB6eZ4adapWAagmaeeA3CpfopDROXcqGJPBHYPfvfLZIGdgyYhyYC3Objw=="],
"@gitbook/api": ["@gitbook/api@0.131.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-xFxdeZTEO0rXRbsnleH3RRvJROuqKArLMz3WtmBurzOGOWsutfOye2aW+6q5UNzJDf4iKiXAylvmyOYrMypYBg=="],

"@gitbook/cache-tags": ["@gitbook/cache-tags@workspace:packages/cache-tags"],

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"workspaces": {
"packages": ["packages/*"],
"catalog": {
"@gitbook/api": "^0.130.0"
"@gitbook/api": "^0.131.0"
}
},
"patchedDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/gitbook/src/intl/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ja } from './ja';
import { nl } from './nl';
import { no } from './no';
import { pt_br } from './pt-br';
import { ru } from './ru';
import type { TranslationLanguage } from './types';
import { zh } from './zh';

Expand All @@ -27,4 +28,5 @@ export const languages: {
nl,
no,
'pt-br': pt_br,
ru,
};
109 changes: 109 additions & 0 deletions packages/gitbook/src/intl/translations/ru.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
export const ru = {
locale: 'ru',
powered_by_gitbook: 'Работает на GitBook',
sponsored_via_gitbook: 'Спонсируется GitBook',
switch_to_dark_theme: 'Переключиться на тёмную тему',
switch_to_light_theme: 'Переключиться на светлую тему',
switch_to_system_theme: 'Переключиться на системную тему',
search: 'Поиск',
search_or_ask: 'Спросить или найти',
search_input_placeholder: 'Поиск по содержимому',
search_ask_input_placeholder: 'Найти в содержимом или задать вопрос',
search_no_results_for: 'Нет результатов для "${1}".',
search_no_results: 'Нет результатов',
search_results_count: '${1} — число результатов',
search_scope_space: '${1}',
search_scope_all: 'Все материалы',
ask: 'Спросить',
search_ask: 'Спросить "${1}"',
search_ask_description: 'Найти ответ с помощью ИИ',
search_ask_sources: 'Источники',
search_ask_sources_no_answer: 'Похожие страницы',
search_ask_no_answer:
'Не удалось найти ответ на ваш вопрос. Попробуйте перефразировать его или задать более конкретный вопрос.',
search_ask_error: 'Что-то пошло не так. Пожалуйста, попробуйте позже.',
on_this_page: 'На этой странице',
next_page: 'Следующая',
previous_page: 'Предыдущая',
page_last_modified: 'Последнее обновление ${1}',
was_this_helpful: 'Это было полезно?',
was_this_helpful_positive: 'Да, было!',
was_this_helpful_neutral: 'Не знаю',
was_this_helpful_negative: 'Нет',
was_this_helpful_thank_you: 'Спасибо!',
was_this_helpful_comment: 'Хотите что-нибудь добавить?',
was_this_helpful_positive_label: 'Полезно',
was_this_helpful_negative_label: 'Не полезно',
submit: 'Отправить',
annotation_button_label: 'Открыть аннотацию',
code_copied: 'Скопировано!',
code_copy: 'Копировать',
table_of_contents_button_label: 'Открыть оглавление',
cookies_title: 'Файлы cookies',
cookies_prompt:
'Этот сайт использует файлы cookies для предоставления услуг и анализа трафика. Просматривая этот сайт, вы принимаете условия ${1}.',
cookies_prompt_privacy: 'политики конфиденциальности',
cookies_accept: 'Принять',
cookies_reject: 'Отклонить',
close: 'Закрыть',
view: 'Посмотреть',
edit_on_git: 'Редактировать в ${1}',
notfound_title: 'Страница не найдена',
notfound_link: 'Эта ссылка ведёт на страницу, которая была удалена или больше не существует.',
notfound: 'Страница, которую вы ищете, не существует.',
unexpected_error_title: 'Произошла ошибка',
unexpected_error: 'Извините, произошла непредвиденная ошибка. Пожалуйста, попробуйте позже.',
unexpected_error_retry: 'Попробуйте снова',
pdf_download: 'Экспортировать как PDF',
pdf_goback: 'Вернуться к материалу',
pdf_print: 'Напечатать или сохранить как PDF',
pdf_page_of: '${1} из ${2}',
pdf_mode_only_page: 'Только эта страница',
pdf_mode_all: 'Все страницы',
pdf_limit_reached:
'Не удалось создать PDF-файл для ${1} страниц, генерация остановлена ​​на ${2}.',
pdf_limit_reached_continue: 'Расширьте ещё на ${1} страниц.',
more: 'Ещё',
link_tooltip_external_link: 'Внешняя ссылка на',
link_tooltip_page_anchor: 'Перейти к разделу',
open_in_new_tab: 'Открыть в новой вкладке',
ai_chat_assistant_name: 'GitBook-помощник',
ai_chat_assistant_name_unbranded: 'ИИ-помощник',
ai_chat_assistant_description: 'Я здесь, чтобы помочь вам с базой знаний.',
ai_chat_assistant_greeting_morning: 'Доброе утро',
ai_chat_assistant_greeting_afternoon: 'Добрый день',
ai_chat_assistant_greeting_evening: 'Добрый вечер',
ai_chat_assistant_greeting_night: 'Доброй ночи',
ai_chat_clear_conversation: 'Очистить диалог',
ai_chat_thinking: 'Думает…',
ai_chat_working: 'Работает…',
ai_chat_context_badge: 'ИИ',
ai_chat_error: 'Что-то пошло не так.',
ai_chat_context_title: 'На основе вашего контекста',
ai_chat_context_description:
'Помощник использует ИИ и ваш контекст для генерации ответов и выполнения действий.',
ai_chat_context_pages_youve_read: 'Страницы, которые вы прочитали',
ai_chat_context_info_provided_by_the_site: 'Информация предоставлена ​​сайтом',
ai_chat_context_previous_messages: 'Предыдущие сообщения',
ai_chat_context_disclaimer: 'Ответы ИИ могут содержать ошибки.',
ai_chat_input_placeholder: 'Спросите, найдите или объясните...',
send: 'Отправить',
actions: 'Действия',
ai_chat_suggested_questions_title: 'Предложенные вопросы',
ai_chat_suggested_questions_about_this_page: 'О чём эта страница?',
ai_chat_suggested_questions_read_next: 'Что мне нужно прочитать дальше?',
ai_chat_suggested_questions_example: 'Можете ли вы привести пример?',
searched_for: 'Выполнен поиск ${1}',
ai_chat_tools_listed_pages: 'Просмотрены документы',
ai_chat_tools_read_page: 'Прочитана страница ${1}',
ai_chat_tools_mcp_tool: 'Вызван ${1}',
ai_chat_ask: 'Спросить ${1}',
ai_chat_ask_about_page: 'Спросить ${1} об этой странице',
copy_for_llms: 'Скопировать для LLM',
copy_page_markdown: 'Скопировать страницу как Markdown для LLM',
copy_page: 'Скопировать страницу',
view_page_markdown: 'Посмотреть как Markdown',
view_page_plaintext: 'Посмотреть как plain text',
open_in: 'Открыть в ${1}',
open_in_llms_pre_prompt: 'Прочитай ${1} и ответь на вопросы о содержимом.',
};
Loading