Merge branch 'main' into STRAP-54

This commit is contained in:
GitStart 2022-09-02 07:08:48 +01:00 committed by GitHub
commit ca88a6802b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,8 @@ on:
push:
branches:
- 'main'
paths:
- 'docs/**'
workflow_dispatch:

View File

@ -60,6 +60,10 @@ module.exports = ({ strapi }) => ({
...createLocalizationResolversConfig,
// locale arg transformation for localized createEntity mutations
...getLocalizedCreateMutationsResolversConfigs({ typeRegistry }),
// Modify the default scope associated to find and findOne locale queries to match the actual action name
'Query.i18NLocale': { auth: { scope: 'plugin::i18n.locales.listLocales' } },
'Query.i18NLocales': { auth: { scope: 'plugin::i18n.locales.listLocales' } },
},
};
});