Skip to content

Commit

Permalink
feat: add ru-RU locale (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchinchel authored Nov 23, 2023
1 parent e0cd2b3 commit ef2e0dd
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
4 changes: 4 additions & 0 deletions extensions/time-master/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.0.5

- feat: add ru-RU locale

## 1.0.4

- chore: update taobao npm registry from `https://registry.npm.taobao.org` to `https://registry.npmmirror.com`
Expand Down
2 changes: 1 addition & 1 deletion extensions/time-master/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Time Master",
"description": "Metrics, insights, and time tracking automatically generated from your programming activity.",
"publisher": "iceworks-team",
"version": "1.0.4",
"version": "1.0.5",
"engines": {
"vscode": "^1.41.0"
},
Expand Down
2 changes: 2 additions & 0 deletions extensions/time-master/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import * as vscode from 'vscode';
import I18nService from '@appworks/i18n';
import * as zhCNTextMap from './locales/zh-CN.json';
import * as enUSTextMap from './locales/en-US.json';
import * as ruRUTextMap from './locales/ru-RU.json';

const i18n = new I18nService();
i18n.registry('zh-cn', zhCNTextMap);
i18n.registry('en', enUSTextMap);
i18n.registry('ru', ruRUTextMap);
i18n.setLocal(vscode.env.language);

export default i18n;
36 changes: 36 additions & 0 deletions extensions/time-master/src/locales/ru-RU.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extension.timeMaster.tree.item.editor.label": "Время в редакторе",
"extension.timeMaster.tree.item.editor.detail": "Общее время, проведённое в редакторе",
"extension.timeMaster.tree.item.acCode.label": "Время написания кода",
"extension.timeMaster.tree.item.acCode.detail": "Общее время набора текста в редакторе",
"extension.timeMaster.tree.item.linesAdded.label": "Строк добавлено",
"extension.timeMaster.tree.item.linesAdded.detail": "Общее количество строк, добавленных в редакторе",
"extension.timeMaster.tree.item.linesRemoved.label": "Строк удалено",
"extension.timeMaster.tree.item.linesRemoved.detail": "Общее количество строк, удалённых в редакторе",
"extension.timeMaster.tree.item.keystrokes.label": "Клавиш нажато",
"extension.timeMaster.tree.item.keystrokes.detail": "Общее количество нажатий на клавиши, совершённых во время набора текста в редакторе",
"extension.timeMaster.tree.item.filesChanged.label": "Файлов изменено",
"extension.timeMaster.tree.item.filesChanged.detail": "Общее количество файлов, изменённых в редакторе",
"extension.timeMaster.tree.item.topFilesByKPM.label": "Топ файлов по нажатиям в минуту",
"extension.timeMaster.tree.item.topFilesByKPM.detail": "Файлы, в которых выше всего количество нажатий клавиш в минуту",
"extension.timeMaster.tree.item.topFilesByKey.label": "Топ файлов по нажатиям всего",
"extension.timeMaster.tree.item.topFilesByKey.detail": "Файлы, в которых больше всего общее количество нажатий клавиш",
"extension.timeMaster.tree.item.topFilesByCT.label": "Топ файлов по времени",
"extension.timeMaster.tree.item.topFilesByCT.detail": "Файлы, в которых проведено больше всего времени",
"extension.timeMaster.tree.item.average": "В среднем: <%=value%>",
"extension.timeMaster.tree.item.global": "Глобально (<%=day%>): <%=value%>",
"extension.timeMaster.tree.item.today": "Сегодня: <%=value%>",
"extension.timeMaster.time.hour": "ч",
"extension.timeMaster.time.hours": "ч",
"extension.timeMaster.time.min": "мин",
"extension.timeMaster.edTime": "Время в редакторе",
"extension.timeMaster.acCode": "Написание кода",
"extension.timeMaster.linesAdded": "Строк кода добавлено",
"extension.timeMaster.linesRemoved": "Строк кода удалено",
"extension.timeMaster.keystrokes": "Всего нажатий на клавиши",
"extension.timeMaster.separator": ": ",
"extension.timeMaster.viewUserSummary.label": "Общий отчёт",
"extension.timeMaster.viewUserSummary.detail": "Посмотреть последние метрики в редакторе",
"extension.timeMaster.viewProjectSummary.label": "Отчёт по проекту",
"extension.timeMaster.viewProjectSummary.detail": ""
}

0 comments on commit ef2e0dd

Please sign in to comment.