这是indexloc提供的服务,不要输入任何密码
Skip to content
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
12 changes: 12 additions & 0 deletions compose-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you uncheck this file from the PR?

app:
entrypoint:
- sleep
- infinity
image: docker/dev-environments-default:stable-1
init: true
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock

5 changes: 3 additions & 2 deletions frontend/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import { defaultNS, resources } from "./locales/resources";
i18next
// https://github.com/i18next/i18next-browser-languageDetector/blob/9efebe6ca0271c3797bc09b84babf1ba2d9b4dbb/src/index.js#L11
.use(initReactI18next) // Initialize i18n for React
.use(LanguageDetector)
.use(LanguageDetector) // Initialize i18n for React
.init({
fallbackLng: "en",
lng: window.navigator.language || "ru",
fallbackLng: "ru",
debug: true,
defaultNS,
resources,
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/locales/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
// to a specific language file as this will break the other languages. Any new keys should be added to english
// and the language file you are working on.

import Russian from "./ru/common.js";
import English from "./en/common.js";
import Spanish from "./es/common.js";
import French from "./fr/common.js";
import Mandarin from "./zh/common.js";

export const defaultNS = "common";
export const resources = {
ru: {
common: Russian,
},
en: {
common: English,
},
Expand Down
Loading