Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 4 additions & 0 deletions frontend/src/components/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ import VersionWarnSR from "./translations/sr/version-warning";
import LowercaseNoteSR from "./translations/sr/lowercase-note";
import TipNPCCallbacksSR from "./translations/sr/npc-callbacks-tip";

import VersionWarnSR from "./translations/fa/version-warning";
import LowercaseNoteSR from "./translations/fa/lowercase-note";
import TipNPCCallbacksSR from "./translations/fa/npc-callbacks-tip";
Comment thread
itsneufox marked this conversation as resolved.
Outdated

const templates = {
VersionWarn,
LowercaseNote,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Admonition from "../../../Admonition";

export default function NoteLowercase({ name = "function" }) {
return (
<Admonition type="warning">
<p>این {name} با یک حرف کوچک شروع می شود.</p>
</Admonition>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Admonition from "../../../Admonition";

export default function TipNpcCallback() {
return (
<Admonition type="tip">
<p>همچنین این callback می تواند توسط NPC نیز صدا زده شود.</p>
</Admonition>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Admonition from "../../../Admonition";

export default function WarningVersion({
version,
name = "function",
}: {
version: string;
name: string;
}) {
return (
<Admonition type="warning">
<p>این {name} در {version} اضافه شده و در نسخه های قبلی کار نخواهد کرد!</p>
</Admonition>
);
}