@nocobase/plugin-calendar 0.21.0-alpha.7 → 0.21.0-alpha.9

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.
@@ -1,8 +1,8 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.21.0-alpha.7",
2
+ "@nocobase/client": "0.21.0-alpha.9",
3
3
  "react-i18next": "11.18.6",
4
- "@nocobase/server": "0.21.0-alpha.7",
5
- "@nocobase/test": "0.21.0-alpha.7",
4
+ "@nocobase/server": "0.21.0-alpha.9",
5
+ "@nocobase/test": "0.21.0-alpha.9",
6
6
  "react": "18.2.0",
7
7
  "@ant-design/icons": "5.2.6",
8
8
  "@formily/react": "2.3.0",
@@ -1,4 +1,4 @@
1
1
  export declare const NAMESPACE = "calendar";
2
2
  export declare function i18nt(key: string, options?: any): import("i18next").TFunctionDetailedResult<object>;
3
3
  export declare function generateNTemplate(key: string): string;
4
- export declare function useTranslation(): import("react-i18next").UseTranslationResponse<"calendar", undefined>;
4
+ export declare function useTranslation(): import("react-i18next").UseTranslationResponse<("calendar" | "client")[], undefined>;
@@ -33,7 +33,9 @@ function generateNTemplate(key) {
33
33
  return `{{t('${key}', { ns: '${NAMESPACE}' })}}`;
34
34
  }
35
35
  function useTranslation() {
36
- return (0, import_react_i18next.useTranslation)(NAMESPACE);
36
+ return (0, import_react_i18next.useTranslation)([NAMESPACE, "client"], {
37
+ nsMode: "fallback"
38
+ });
37
39
  }
38
40
  // Annotate the CommonJS export names for ESM import in node:
39
41
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-calendar",
3
- "version": "0.21.0-alpha.7",
3
+ "version": "0.21.0-alpha.9",
4
4
  "displayName": "Calendar",
5
5
  "displayName.zh-CN": "日历",
6
6
  "description": "Provides callendar collection template and block for managing date data, typically for date/time related information such as events, appointments, tasks, and so on.",
@@ -36,7 +36,7 @@
36
36
  "url": "git+https://github.com/nocobase/nocobase.git",
37
37
  "directory": "packages/plugins/calendar"
38
38
  },
39
- "gitHead": "b1be3993f8aa81173d01bc390aa8e4c5adcc0e2d",
39
+ "gitHead": "a6fe6c4ee532c04e5a50ec777bf76436ca624cbd",
40
40
  "keywords": [
41
41
  "Collections",
42
42
  "Blocks"