Skip to content

Commit

Permalink
Add basic config and pages for Russian language (#1228)
Browse files Browse the repository at this point in the history
* Add basic config and pages for Russian language

* Translate README.md to ru
  • Loading branch information
Blezz-tech committed Jan 29, 2024
1 parent 72085ff commit 58cab10
Show file tree
Hide file tree
Showing 9 changed files with 370 additions and 59 deletions.
14 changes: 14 additions & 0 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ import {
navbarEs,
navbarJa,
navbarPtBR,
navbarRU,
navbarZhCN,
sidebarDe,
sidebarEn,
sidebarEs,
sidebarJa,
sidebarPtBR,
sidebarRU,
sidebarZhCN,
} from './configs/index.js';

Expand Down Expand Up @@ -63,6 +65,11 @@ export default defineUserConfig({
title: 'Nushell',
description: 'Um novo tipo de shell.',
},
'/ru': {
lang: 'ru',
title: 'Nushell',
description: 'Новый тип оболочки.',
},
},
head: [
['meta', { name: 'theme-color', content: '#3eaf7c' }],
Expand Down Expand Up @@ -127,6 +134,13 @@ export default defineUserConfig({
navbar: navbarPtBR,
sidebar: sidebarPtBR,
},
'/ru': {
selectText: 'Языки',
selectLanguageName: 'Русский язык',
editLinkText: 'Отредактируйте эту страницу на GitHub',
navbar: navbarRU,
sidebar: sidebarRU,
},
'/zh-CN/': {
selectText: '语言',
selectLanguageName: '中文',
Expand Down
1 change: 1 addition & 0 deletions .vuepress/configs/navbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export * from './en.js';
export * from './es.js';
export * from './ja.js';
export * from './pt-BR.js';
export * from './ru.js';
export * from './zh-CN.js';
9 changes: 9 additions & 0 deletions .vuepress/configs/navbar/ru.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { NavbarConfig } from '@vuepress/theme-default';

export const navbarRU: NavbarConfig = [
{ text: 'Книга', link: '/ru/book/' },
// { text: "Contributor Book", link: "/contributor-book/" },
{ text: 'Команды', link: '/commands/' },
{ text: 'Cookbook', link: '/cookbook/' },
{ text: 'Блог', link: '/blog/' },
];
1 change: 1 addition & 0 deletions .vuepress/configs/sidebar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export * from './en.js';
export * from './es.js';
export * from './ja.js';
export * from './pt-BR.js';
export * from './ru.js';
export * from './zh-CN.js';
110 changes: 110 additions & 0 deletions .vuepress/configs/sidebar/ru.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import type { SidebarConfig } from '@vuepress/theme-default';
import { commandCategories } from './command_categories';

export const sidebarRU: SidebarConfig = {
'/ru/book/': [
{
text: 'Введение',
link: '/ru/book/README.md',
collapsible: false,
},
// {
// text: 'Начало работы',
// link: '/ru/book/getting_started.md',
// collapsible: false,
// children: [
// '/ru/book/installation.md',
// '/ru/book/default_shell.md',
// '/ru/book/quick_tour.md',
// '/ru/book/moving_around.md',
// '/ru/book/thinking_in_nu.md',
// '/ru/book/cheat_sheet.md',
// ],
// },
// {
// text: 'Основы Nu',
// link: '/nu_fundamentals.md',
// collapsible: false,
// children: [
// '/ru/book/types_of_data.md',
// '/ru/book/loading_data.md',
// '/ru/book/pipelines.md',
// '/ru/book/working_with_strings.md',
// '/ru/book/working_with_lists.md',
// '/ru/book/working_with_tables.md',
// ],
// },
// {
// text: 'Программирование в Nu',
// link: '/programming_in_nu.md',
// collapsible: false,
// children: [
// '/ru/book/custom_commands.md',
// '/ru/book/aliases.md',
// '/ru/book/operators.md',
// '/ru/book/variables_and_subexpressions.md',
// '/ru/book/control_flow.md',
// '/ru/book/scripts.md',
// '/ru/book/modules.md',
// '/ru/book/overlays.md',
// '/ru/book/command_signature.md',
// '/ru/book/testing.md',
// '/ru/book/style_guide.md',
// ],
// },
// {
// text: 'Nu как оболочка',
// link: '/nu_as_a_shell.md',
// collapsible: false,
// children: [
// '/ru/book/configuration.md',
// '/ru/book/environment.md',
// '/ru/book/stdout_stderr_exit_codes.md',
// '/ru/book/escaping.md',
// '/ru/book/3rdpartyprompts.md',
// '/ru/book/shells_in_shells.md',
// '/ru/book/line_editor.md',
// '/ru/book/externs.md',
// '/ru/book/custom_completions.md',
// '/ru/book/coloring_and_theming.md',
// '/ru/book/hooks.md',
// '/ru/book/background_task.md',
// ],
// },
// {
// text: 'Переход в Nu',
// link: '/coming_to_nu.md',
// collapsible: false,
// children: [
// '/ru/book/coming_from_bash.md',
// '/ru/book/coming_from_cmd.md',
// '/ru/book/nushell_map.md',
// '/ru/book/nushell_map_imperative.md',
// '/ru/book/nushell_map_functional.md',
// '/ru/book/nushell_operator_map.md',
// ],
// },
// {
// text: 'Примечания к дизайну',
// link: '/design_notes.md',
// collapsible: false,
// children: [
// '/ru/book/how_nushell_code_gets_run.md'
// ],
// },
// {
// text: '(Не очень) Продвинутый',
// link: '/advanced.md',
// collapsible: false,
// children: [
// '/ru/book/standard_library.md',
// '/ru/book/dataframes.md',
// '/ru/book/metadata.md',
// '/ru/book/creating_errors.md',
// '/ru/book/parallelism.md',
// '/ru/book/plugins.md',
// '/ru/book/explore.md',
// ],
// },
],
};

0 comments on commit 58cab10

Please sign in to comment.