Skip to content

6.16.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Jul 07:55
· 1082 commits to main since this release
d862d6c

@comet/admin@6.16.0

Minor Changes

  • fb0fe25: Add FinalFormNumberInput and NumberField as optimised fields for number inputs in FinalForms

Patch Changes

  • 747fe32: Fix incorrect router prompt in TableLocalChanges when there are no changes

@comet/cms-admin@6.16.0

Minor Changes

  • 5e830f8: Add an Azure AI Translator implementation of the content translation feature

    To use it, do the following:

    API:

    // app.module.ts
    export class AppModule {
        static forRoot(config: Config): DynamicModule {
            return {
                imports: [
                    // ...
    +               AzureAiTranslatorModule.register({
    +                   endpoint: envVars.AZURE_AI_TRANSLATOR_ENDPOINT,
    +                   key: envVars.AZURE_AI_TRANSLATOR_KEY,
    +                   region: envVars.AZURE_AI_TRANSLATOR_REGION,
    +               }),
                ],
            };
        }
    }

    Users need the translation permission to use the translation feature.

    Admin:

    Wrap the section where you want to use the content translation with the AzureAiTranslatorProvider provider:

    <AzureAiTranslatorProvider enabled={true}>{/*  ...  */}</AzureAiTranslatorProvider>

    Note: AzureAiTranslatorProvider automatically checks for the translation permission. The translation button is only shown for users with this permission.

@comet/cms-api@6.16.0

Minor Changes

  • 5e830f8: Add an Azure AI Translator implementation of the content translation feature

    To use it, do the following:

    API:

    // app.module.ts
    export class AppModule {
        static forRoot(config: Config): DynamicModule {
            return {
                imports: [
                    // ...
    +               AzureAiTranslatorModule.register({
    +                   endpoint: envVars.AZURE_AI_TRANSLATOR_ENDPOINT,
    +                   key: envVars.AZURE_AI_TRANSLATOR_KEY,
    +                   region: envVars.AZURE_AI_TRANSLATOR_REGION,
    +               }),
                ],
            };
        }
    }

    Users need the translation permission to use the translation feature.

    Admin:

    Wrap the section where you want to use the content translation with the AzureAiTranslatorProvider provider:

    <AzureAiTranslatorProvider enabled={true}>{/*  ...  */}</AzureAiTranslatorProvider>

    Note: AzureAiTranslatorProvider automatically checks for the translation permission. The translation button is only shown for users with this permission.

Patch Changes

  • f7d405d: Fix the duplicate filename check in FilesService#updateByEntity

    Previously, we checked the existing file name (entity.name) for the check instead of the new name (input.name). This never resulted in an error.