1.0.0 (#26)
Build / Build [amd64] (push) Has been cancelled
Build / Build [arm64] (push) Has been cancelled
Build / Publish (push) Has been cancelled

* bump outline to 1.0.0-2

* update translation.json

* update readme.*

* update Dockerfile*

* bump outline to 1.0.0-test8

* reorganize repo, add git hook

* bump version to 1.0.0

* update translations
This commit is contained in:
Evgeny
2025-10-27 17:47:11 +05:00
committed by GitHub
parent 7bcf8279e2
commit daa7561aff
12 changed files with 210 additions and 99 deletions
+74
View File
@@ -0,0 +1,74 @@
diff --git a/app/components/Sidebar/components/Version.tsx b/app/components/Sidebar/components/Version.tsx
index f2e8810b2..d4e202447 100644
--- a/app/components/Sidebar/components/Version.tsx
+++ b/app/components/Sidebar/components/Version.tsx
@@ -30,7 +30,7 @@ export default function Version() {
return (
<SidebarLink
target="_blank"
- href="https://github.com/outline/outline/releases"
+ href="https://github.com/flameshikari/outline-ru/releases"
label={
<>
v{currentVersion}
diff --git a/server/env.ts b/server/env.ts
index 34f926029..88f97d515 100644
--- a/server/env.ts
+++ b/server/env.ts
@@ -245,7 +245,7 @@ export class Environment {
*/
@Public
@IsIn(languages)
- public DEFAULT_LANGUAGE = environment.DEFAULT_LANGUAGE ?? "en_US";
+ public DEFAULT_LANGUAGE = environment.DEFAULT_LANGUAGE ?? "ru_RU";
/**
* A comma list of which services should be enabled on this instance defaults to all.
diff --git a/server/utils/getInstallationInfo.ts b/server/utils/getInstallationInfo.ts
index 1d11a426c..00ec42f69 100644
--- a/server/utils/getInstallationInfo.ts
+++ b/server/utils/getInstallationInfo.ts
@@ -2,7 +2,7 @@ import { version } from "../../package.json";
import fetch from "./fetch";
const dockerhubLink =
- "https://hub.docker.com/v2/repositories/outlinewiki/outline";
+ "https://hub.docker.com/v2/repositories/flameshikari/outline-ru";
function isFullReleaseVersion(versionName: string): boolean {
const releaseRegex = /^(version-)?\d+\.\d+\.\d+$/; // Matches "N.N.N" or "version-N.N.N" for dockerhub releases before v0.56.0"
diff --git a/shared/i18n/index.ts b/shared/i18n/index.ts
index e315ef413..b580ec795 100644
--- a/shared/i18n/index.ts
+++ b/shared/i18n/index.ts
@@ -72,6 +72,10 @@ export const languageOptions: LanguageOption[] = [
label: "فارسی (Persian)",
value: "fa_IR",
},
+ {
+ label: "Русский (Russian)",
+ value: "ru_RU",
+ },
{
label: "Svenska (Swedish)",
value: "sv_SE",
diff --git a/shared/utils/date.ts b/shared/utils/date.ts
index 397b2c7a4..a45d418ae 100644
--- a/shared/utils/date.ts
+++ b/shared/utils/date.ts
@@ -23,6 +23,7 @@ import {
ptBR,
pt,
pl,
+ ru,
sv,
tr,
vi,
@@ -175,6 +176,7 @@ const locales = {
pt_BR: ptBR,
pt_PT: pt,
pl_PL: pl,
+ ru_RU: ru,
sv_SE: sv,
tr_TR: tr,
uk_UA: uk,
+34
View File
@@ -0,0 +1,34 @@
diff --git a/server/routes/index.ts b/server/routes/index.ts
index 26fbded27..478de1922 100644
--- a/server/routes/index.ts
+++ b/server/routes/index.ts
@@ -103,7 +103,7 @@ router.get("/locales/:lng.json", async (ctx) => {
await send(ctx, path.join(lng, "translation.json"), {
setHeaders: (res, _, stats) => {
res.setHeader("Last-Modified", formatRFC7231(stats.mtime));
- res.setHeader("Cache-Control", `public, max-age=${7 * Day.seconds}`);
+ res.setHeader("Cache-Control", "no-store");
res.setHeader(
"ETag",
crypto.createHash("md5").update(stats.mtime.toISOString()).digest("hex")
diff --git a/vite.config.ts b/vite.config.ts
index 32b52d44e..26d611fee 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -45,6 +45,17 @@ export default () =>
: { strict: true },
},
plugins: [
+ {
+ name: 'reload',
+ configureServer(server) {
+ const { ws, watcher } = server;
+ watcher.on('change', file => {
+ if (file.endsWith('build/shared/i18n/locales/ru_RU/translation.json')) {
+ ws.send({ type: 'full-reload' });
+ }
+ });
+ },
+ },
react(),
// https://vite-pwa-org.netlify.app/