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
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/frontend/i18n/ar/ @midosvt @ImOver00
/frontend/i18n/sv/ @fusez
/frontend/i18n/vi/ @PHATBENTRE
/frontend/i18n/uk/ @justdawy
17 changes: 16 additions & 1 deletion frontend/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import { themes as prismThemes } from "prism-react-renderer";

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

const currentYear = new Date().getFullYear();

const copyrightByLocale: Record<string, string> = {
en: `Copyright © ${currentYear} open.mp. Built with Docusaurus.`,
uk: `Copyright © ${currentYear} open.mp. Створено на Docusaurus.`,
"pt-BR": `Copyright © ${currentYear} open.mp. Feito com Docusaurus.`,
"zh-CN": `版权所有 © ${currentYear} open.mp。基于Docusaurus构建"`,
tr: `Telif Hakkı © ${currentYear} open.mp. Docusaurus ile yapıldı.`,
fa: `حق نشر © ${currentYear} open.mp. ساخته شده با Docusaurus.`,

};

const config: Config = {
title: "open.mp",
tagline: "Open Multiplayer",
Expand Down Expand Up @@ -330,7 +342,10 @@ const config: Config = {
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} open.mp. Built with Docusaurus.`,
copyright:
copyrightByLocale[
process.env.DOCUSAURUS_CURRENT_LOCALE || "en"
] || copyrightByLocale.en,
},
prism: {
theme: prismThemes.github,
Expand Down
4 changes: 0 additions & 4 deletions frontend/i18n/fa/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
},
"copyright": {
"message": "حق نشر © 2025 open.mp. ساخته شده با Docusaurus.",
"description": "The footer copyright"
}
}
4 changes: 0 additions & 4 deletions frontend/i18n/pt-BR/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
},
"copyright": {
"message": "Copyright © 2025 open.mp. Feito com Docusaurus.",
"description": "The footer copyright"
}
}
4 changes: 0 additions & 4 deletions frontend/i18n/tr/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
},
"copyright": {
"message": "Telif Hakkı © {year} open.mp. Docusaurus ile yapıldı.",
"description": "The footer copyright"
}
}
4 changes: 0 additions & 4 deletions frontend/i18n/uk/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
},
"copyright": {
"message": "Copyright © {year} open.mp. Створено на Docusaurus.",
"description": "The footer copyright"
}
}
4 changes: 0 additions & 4 deletions frontend/i18n/zh-CN/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "标签为SA-MP的页脚链接,指向https://sa-mp.mp/"
},
"copyright": {
"message": "版权所有 © 2025 open.mp。基于Docusaurus构建",
"description": "页脚版权信息"
}
}
Loading