Skip to content
Open
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
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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be XXXXFA instead of XXXXSR
And they're not exported, nor used anywhere.


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>
);
}