Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Feat: Add russian language #10

Merged
merged 3 commits into from
Jul 25, 2024
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker publish

on:
workflow_dispatch:
push:
branches:
- 'release-10.4.6'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: kamenskiyyyy/grafana-russian:10.4.6
7 changes: 7 additions & 0 deletions public/app/core/internationalization/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const SPANISH_SPAIN = 'es-ES';
export const GERMAN_GERMANY = 'de-DE';
export const CHINESE_SIMPLIFIED = 'zh-Hans';
export const PSEUDO_LOCALE = 'pseudo-LOCALE';
export const RUSSIAN_LOCALE = 'ru-RU';

export const DEFAULT_LANGUAGE = ENGLISH_US;

Expand Down Expand Up @@ -50,6 +51,12 @@ export const LANGUAGES: LanguageDefinitions[] = [
name: '中文(简体)',
loader: () => import('../../../locales/zh-Hans/grafana.json'),
},

{
code: RUSSIAN_LOCALE,
name: 'Русский',
loader: () => import('../../../locales/ru-RU/grafana.json'),
},
];

if (process.env.NODE_ENV === 'development') {
Expand Down
Loading