🌐Translations for the latest features (#78)

* 🌐Translations for the latest features
Also:
  - Rename “Home” to Shared drive
  - Hide banner with suggestion of downloading desktop app
  - Fix Upload button on main screen
  - Add separate buttons for the manage access and share by link
This commit is contained in:
Anton Shepilov
2023-06-16 14:15:48 +02:00
committed by GitHub
parent 312e08d301
commit fddd3b4ebd
50 changed files with 1312 additions and 13609 deletions
@@ -87,7 +87,7 @@ describe("the Drive feature", () => {
const result = deserialize<DriveItemDetailsMockClass>(DriveItemDetailsMockClass, response.body);
expect(result.item.id).toEqual("root");
expect(result.item.name).toEqual("Home");
expect(result.item.name).toEqual("Shared Drive");
});
it("did fetch the trash", async () => {
@@ -0,0 +1,30 @@
import "reflect-metadata";
import {describe, it} from "@jest/globals";
import { I18nService } from "../../../../../src/services/i18n";
describe("i18n service", () => {
let subj: I18nService;
beforeAll(async () => {
subj = await (new I18nService()).init();
});
it("'Should translate \"Hello\" to FR", async () => {
//given
const msg = "hello";
//expect
expect(subj.translate(msg, "fr")).toEqual("Bonjour");
});
it("'Should translate \"Hello\" to RU", async () => {
//given
const msg = "hello";
//expect
expect(subj.translate(msg, "ru")).toEqual("Привет");
});
});