Yuki Takei преди 2 години
родител
ревизия
911e97fba5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/pluginkit/src/server/utils/v4/template.ts

+ 1 - 1
packages/pluginkit/src/server/utils/v4/template.ts

@@ -22,7 +22,7 @@ export const validateTemplatePluginPackageJson = async(projectDirRoot: string):
   const pkg = await importPackageJson(projectDirRoot);
 
   // check supporting locales
-  const supportingLocales: string[] | undefined = pkg.supportingLocales;
+  const supportingLocales: string[] | undefined = pkg.growiPlugin.locales;
   if (supportingLocales == null || supportingLocales.length === 0) {
     throw new GrowiPluginValidationError<GrowiPluginValidationData & { supportingLocales?: string[] }>(
       "Template plugin must have 'supportingLocales' and that must have one or more locales",