Transfer some Posts and automate original German

This commit is contained in:
2023-12-10 01:48:53 +01:00
parent 311856415e
commit 3d95bffb6a
89 changed files with 1630 additions and 1163 deletions

View File

@@ -1,3 +1,22 @@
/*
* This file is a part of the SteamWar software.
*
* Copyright (C) 2023 SteamWar.de-Serverteam
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// @ts-ignore
import {defineCollection, reference, z} from 'astro:content';
@@ -44,7 +63,6 @@ export const downloads = defineCollection({
export const rules = defineCollection({
type: "content",
schema: z.object({
german: z.boolean().optional().default(false),
translationKey: z.string(),
})
})
@@ -56,8 +74,8 @@ export const announcements = defineCollection({
description: z.string(),
image: image().optional(),
tags: z.array(z.string()),
german: z.boolean().optional().default(false),
created: z.date()
created: z.date(),
key: z.string()
})
})