fimo 0.4.0-experimental.1 → 0.4.0-experimental.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,7 +22,6 @@ import fimoConfig from "virtual:fimo-config";
|
|
|
22
22
|
*/
|
|
23
23
|
export interface <%= model.pascal %>FimoMeta {
|
|
24
24
|
contentType: string;
|
|
25
|
-
translationProgress: { state: "queued" | "translating"; fields?: string[] } | null;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
export interface <%= model.pascal %> {
|
|
@@ -104,7 +103,6 @@ function wrapWithSource(entry: Record<string, any>): <%= model.pascal %> {
|
|
|
104
103
|
updatedAt: entry.updatedAt,
|
|
105
104
|
__fimo: {
|
|
106
105
|
contentType: typeof entryFimo.contentType === "string" ? entryFimo.contentType : "<%= model.uid %>",
|
|
107
|
-
translationProgress: entryFimo.translationProgress && typeof entryFimo.translationProgress === "object" ? entryFimo.translationProgress as <%= model.pascal %>FimoMeta["translationProgress"] : null,
|
|
108
106
|
},
|
|
109
107
|
<%
|
|
110
108
|
if (model.fields) {
|
|
@@ -173,7 +173,6 @@ interface BlogPost {
|
|
|
173
173
|
updatedAt: string;
|
|
174
174
|
__fimo: {
|
|
175
175
|
contentType: string;
|
|
176
|
-
translationProgress: { state: 'queued' | 'translating'; fields?: string[] } | null;
|
|
177
176
|
};
|
|
178
177
|
title: FimoString;
|
|
179
178
|
body: FimoRichText;
|
|
@@ -184,7 +183,7 @@ interface BlogPost {
|
|
|
184
183
|
}
|
|
185
184
|
```
|
|
186
185
|
|
|
187
|
-
Content fields live at the top level. Fimo-owned metadata that is not part of the user schema lives under `__fimo`, so a schema can safely define fields named `contentType
|
|
186
|
+
Content fields live at the top level. Fimo-owned metadata that is not part of the user schema lives under `__fimo`, so a schema can safely define fields named `contentType`.
|
|
188
187
|
|
|
189
188
|
## Localized content
|
|
190
189
|
|
package/dist/cli/bundle.json
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -44462,10 +44462,7 @@ var init_translation_dto = __esm({
|
|
|
44462
44462
|
key: external_exports.string(),
|
|
44463
44463
|
value: external_exports.string().optional(),
|
|
44464
44464
|
defaultValue: external_exports.string(),
|
|
44465
|
-
locale: external_exports.string()
|
|
44466
|
-
sourceLocale: external_exports.string().nullable().optional(),
|
|
44467
|
-
translationStatus: external_exports.string().optional(),
|
|
44468
|
-
translationMeta: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().optional()
|
|
44465
|
+
locale: external_exports.string()
|
|
44469
44466
|
});
|
|
44470
44467
|
TranslationDTO = createDTO(TranslationDTOSchema);
|
|
44471
44468
|
}
|
package/package.json
CHANGED