Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ import { adminPath } from "~/utils/app/CanonicalUrlUtils";
|
||||
|
||||
export default function KbCategorySectionForm({
|
||||
knowledgeBase,
|
||||
category,
|
||||
category: _category,
|
||||
language,
|
||||
item,
|
||||
onDelete,
|
||||
|
||||
+2
-2
@@ -33,8 +33,8 @@ export default function KnowledgeBaseForm({ item, onDelete }: { item?: Knowledge
|
||||
}, 100);
|
||||
}, []);
|
||||
|
||||
const [basePath, setBasePath] = useState<string | number | undefined>(item ? item.basePath : "/");
|
||||
const [slug, setSlug] = useState(item ? item.slug : "docs");
|
||||
const [_basePath, setBasePath] = useState<string | number | undefined>(item ? item.basePath : "/");
|
||||
const [_slug, setSlug] = useState(item ? item.slug : "docs");
|
||||
const [title, setTitle] = useState(item?.title || "");
|
||||
const [description, setDescription] = useState(item?.description || "");
|
||||
const [defaultLanguage, setDefaultLanguage] = useState<string | undefined>(item?.defaultLanguage || KnowledgeBaseUtils.defaultLanguage);
|
||||
|
||||
+10
@@ -28,6 +28,16 @@ const sourceFiles = [
|
||||
];
|
||||
|
||||
describe("knowledge base authoring i18n", () => {
|
||||
it("keeps authorable content languages separate from product UI locales", () => {
|
||||
const source = fs.readFileSync(path.join(repoRoot, "apps/web/app/modules/knowledgeBase/utils/KnowledgeBaseUtils.ts"), "utf8");
|
||||
|
||||
expect(source).toContain('{ name: "Deutsch", value: "de"');
|
||||
expect(source).toContain('{ name: "English", value: "en"');
|
||||
for (const locale of ["pl", "ru", "uk", "hu"]) {
|
||||
expect(source).not.toContain(`value: "${locale}"`);
|
||||
}
|
||||
});
|
||||
|
||||
it("uses semantic keys for visible admin authoring labels", () => {
|
||||
const sources = sourceFiles.map((file) => fs.readFileSync(path.join(repoRoot, file), "utf8")).join("\n");
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import TableSimple from "~/components/ui/tables/TableSimple";
|
||||
import { KnowledgeBasesTemplateDto } from "../../dtos/KnowledgeBasesTemplateDto";
|
||||
import { t as i18nT } from "i18next";
|
||||
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
|
||||
|
||||
export default function PreviewKbsTemplate({ template }: { template: KnowledgeBasesTemplateDto }) {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user