Skip to content

Commit

Permalink
Add translations to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Nov 2, 2024
1 parent 4beb131 commit 7452c04
Show file tree
Hide file tree
Showing 37 changed files with 1,819 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

> **The app is in development and not ready for production use. Click [here](https://linwood.dev/flow) to read the devlogs.**
# Linwood Flow
# Flow

> Free, opensource time and event management software
Expand Down Expand Up @@ -33,7 +33,7 @@ Linwood Flow is a free, opensource time and event management software. You can c

## Features

* **⚡ Simple and intuitive:** Every tool is in the right place. Open the app and start managing your time. Invite people to your events and share your calendar with them.
* **⚡ Simple and intuitive:** Every tool is in the right place. Open the app and start managing your time.
* **📝 Support your favorite formats:** Import and export your old notes and events. Set the app as your default calendar app and use it with your favorite apps.
* **📱 Works on every device:** The app is available for android, windows, linux, and in the web. You can use it on your phone, tablet, or computer.
* **💻 Choose where your data is stored:** You can choose to store your data locally, in your favorite cloud (caldav) or decentralized using S5. You can also export your data to a file and import it again.
Expand Down
162 changes: 159 additions & 3 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
import { defineConfig } from "astro/config";
import { getSidebarTranslatedLabel } from "./src/translations";
import starlight from "@astrojs/starlight";

// https://astro.build/config
Expand Down Expand Up @@ -29,13 +30,168 @@ export default defineConfig({
},
sidebar: [
{
label: "Guides",
...getSidebarTranslatedLabel("Guides"),
items: [
// Each item here is one entry in the navigation menu.
{ label: "Intro", slug: "docs/v1/intro" },
{
...getSidebarTranslatedLabel("Introduction"),
link: "/docs/v1/intro",
},
],
},
{
...getSidebarTranslatedLabel("Downloads"),
link: "/downloads/",
},
{
...getSidebarTranslatedLabel("Community"),
items: [
{
...getSidebarTranslatedLabel("Home"),
link: "/community/",
},
{
...getSidebarTranslatedLabel("Branding"),
link: "/community/branding/",
},
{
...getSidebarTranslatedLabel("Changelog"),
link: "/changelog/",
},
{
...getSidebarTranslatedLabel("Contributing"),
link: "/community/contributing/",
},
{
...getSidebarTranslatedLabel("Code of conduct"),
link: "/community/code-of-conduct/",
},
{
...getSidebarTranslatedLabel("Embedding"),
link: "/community/embed/",
},
{
...getSidebarTranslatedLabel("FAQ"),
link: "/community/faq/",
},
{
...getSidebarTranslatedLabel("Versions"),
link: "/community/versions/",
},
{
...getSidebarTranslatedLabel("Nightly builds"),
link: "/community/nightly/",
},
{
...getSidebarTranslatedLabel("Privacy policy"),
link: "/privacypolicy/",
},
],
},
],
locales: {
root: {
label: "English",
lang: "en",
},
af: {
label: "Afrikaans",
},
ar: {
label: "Arabic",
},
ca: {
label: "Catalan",
},
cs: {
label: "Czech",
},
da: {
label: "Danish",
},
de: {
label: "German",
},
el: {
label: "Greek",
},
es: {
label: "Spanish",
},
fi: {
label: "Finnish",
},
fr: {
label: "French",
},
he: {
label: "Hebrew",
},
hi: {
label: "Hindi",
},
hu: {
label: "Hungarian",
},
it: {
label: "Italian",
},
ja: {
label: "Japanese",
},
ko: {
label: "Korean",
},
nl: {
label: "Dutch",
},
no: {
label: "Norwegian",
},
or: {
label: "Oriya",
},
pl: {
label: "Polish",
},
pt: {
label: "Portuguese",
},
"pt-br": {
label: "Portuguese (Brazil)",
lang: "pt-BR",
},
ro: {
label: "Romanian",
},
ru: {
label: "Russian",
},
sr: {
label: "Serbian",
},
sv: {
label: "Swedish",
},
th: {
label: "Thai",
},
tr: {
label: "Turkish",
},
uk: {
label: "Ukrainian",
},
vi: {
label: "Vietnamese",
},
zh: {
label: "Chinese",
},
"zh-hant": {
label: "Chinese (Traditional)",
lang: "zh-Hant",
},
},
}),
],
});
16 changes: 8 additions & 8 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
## Next steps

<CardGrid stagger>
<Card title="Update content" icon="pencil">
Edit `src/content/docs/index.mdx` to see this page change.
<Card title="Cross platform" icon="laptop">
You can use the app on your phone, tablet, laptop, or desktop. The app is available on Linux, Android, and Windows. You can also use the app on the web.
</Card>
<Card title="Add new content" icon="add-document">
Add Markdown or MDX files to `src/content/docs` to create new pages.
<Card title="Choose where your data is stored" icon="open-book">
You can choose to store your data locally or in your favorite cloud (webdav). You can also export your data to a file and import it again.
</Card>
<Card title="Configure your site" icon="setting">
Edit your `sidebar` and other config in `astro.config.mjs`.
<Card title="Manage tasks and events" icon="puzzle">
Combine your tasks and events to keep track of your progress. You can also group your events to know which events are related to each other and add users to it.
</Card>
<Card title="Read the docs" icon="open-book">
Learn more in [the Starlight Docs](https://starlight.astro.build/).
<Card title="Simple and intuitive" icon="puzzle">
Every tool is in the right place. Open the app and start managing your time.
</Card>
</CardGrid>
48 changes: 48 additions & 0 deletions docs/src/translations/af.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"guides": "Guides",
"introduction": "Introduction",
"areas": "Areas",
"background": "Background",
"color_picker": "Color picker",
"layers": "Layers",
"migrating": "Migrating",
"pack": "Pack",
"pages": "Pages",
"shortcuts": "Shortcuts",
"waypoints": "Waypoints",
"add": "Add",
"collaboration": "Collaboration",
"arguments": "Arguments",
"tools": "Tools",
"overview": "Overview",
"pen": "Pen",
"select": "Select",
"hand": "Hand",
"path_eraser": "Path eraser",
"eraser": "Eraser",
"undo": "Undo",
"redo": "Redo",
"shape": "Shape",
"spacer": "Spacer",
"area": "Area",
"full_screen": "Full screen",
"label": "Label",
"laser": "Laser",
"texture": "Texture",
"stamp": "Stamp",
"layer": "Layer",
"collection": "Collection",
"presentation": "Presentation",
"downloads": "Downloads",
"community": "Community",
"home": "Home",
"branding": "Branding",
"changelog": "Changelog",
"contributing": "Contributing",
"code_of_conduct": "Code of conduct",
"embedding": "Embedding",
"faq": "FAQ",
"versions": "Versions",
"nightly": "Nightly",
"privacy_policy": "Privacy policy"
}
48 changes: 48 additions & 0 deletions docs/src/translations/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"guides": "أدلة",
"introduction": "مقدمة",
"areas": "المناطق",
"background": "الخلفية",
"color_picker": "منتقي الألوان",
"layers": "الطبقات",
"migrating": "هجرة",
"pack": "باقة",
"pages": "الصفحات",
"shortcuts": "الاختصارات",
"waypoints": "إحداثيات",
"add": "إضافة",
"collaboration": "التعاون",
"arguments": "حجج",
"tools": "أدوات",
"overview": "نظرة عامة",
"pen": "القلم",
"select": "حدد",
"hand": "اليد",
"path_eraser": "ممحاة المسار",
"eraser": "Eraser",
"undo": "التراجع",
"redo": "إعادة",
"shape": "شكل",
"spacer": "المساحة",
"area": "المنطقة",
"full_screen": "ملء الشاشة",
"label": "تسمية",
"laser": "ليزر",
"texture": "نسيج",
"stamp": "وسام",
"layer": "الطبقة",
"collection": "مجموعة",
"presentation": "عرض",
"downloads": "التنزيلات",
"community": "المجتمع",
"home": "المنزل",
"branding": "العلامة",
"changelog": "تغيير",
"contributing": "المساهمة",
"code_of_conduct": "مدونة قواعد السلوك",
"embedding": "Embedding",
"faq": "أسئلة متكررة",
"versions": "الإصدارات",
"nightly": "ليلي",
"privacy_policy": "سياسة الخصوصية"
}
48 changes: 48 additions & 0 deletions docs/src/translations/ca.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"guides": "Guides",
"introduction": "Introduction",
"areas": "Areas",
"background": "Background",
"color_picker": "Color picker",
"layers": "Layers",
"migrating": "Migrating",
"pack": "Pack",
"pages": "Pages",
"shortcuts": "Shortcuts",
"waypoints": "Waypoints",
"add": "Add",
"collaboration": "Collaboration",
"arguments": "Arguments",
"tools": "Tools",
"overview": "Overview",
"pen": "Bolígraf",
"select": "Select",
"hand": "Hand",
"path_eraser": "Path eraser",
"eraser": "Esborrador",
"undo": "Undo",
"redo": "Redo",
"shape": "Shape",
"spacer": "Spacer",
"area": "Area",
"full_screen": "Full screen",
"label": "Label",
"laser": "Laser",
"texture": "Texture",
"stamp": "Stamp",
"layer": "Layer",
"collection": "Collection",
"presentation": "Presentation",
"downloads": "Downloads",
"community": "Community",
"home": "Home",
"branding": "Branding",
"changelog": "Changelog",
"contributing": "Contributing",
"code_of_conduct": "Code of conduct",
"embedding": "Embedding",
"faq": "FAQ",
"versions": "Versions",
"nightly": "Nightly",
"privacy_policy": "Privacy policy"
}
Loading

0 comments on commit 7452c04

Please sign in to comment.