defaultLocalesByHostnameoption for situations where we can infer a better default locale from the hostname, even though the root URL is being accessed and all of the locales for that hostname have prefixes.
- This module is now compatible with
apostrophe-i18n. Specifically, when
apostrophe-workflowsets the current locale, this also takes effect for
apostrophe-i18nand thus for your static translations. Note that the
i18nmodule is automatically reconfigured when the workflow module is instantiated, in order to pass the correct
defaultLocale; otherwise existing workflow-based sites would break. Configuring those options to
apostrophe-i18nhas no effect in the presence of workflow. However other options passed to that module via
apostrophe-i18nconfiguration are left intact. Thanks to
ehibesfor their pull request.
- Do not crash if a commit is attempted for a doc type that is not subject to workflow.
Thanks to Michelin for making much of the above work possible via Apostrophe Enterprise Support.