- Added
defaultLocalesByHostname
option 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, whenapostrophe-workflow
sets the current locale, this also takes effect forapostrophe-i18n
and thus for your static translations. Note that thei18n
module is automatically reconfigured when the workflow module is instantiated, in order to pass the correctlocales
anddefaultLocale
; otherwise existing workflow-based sites would break. Configuring those options toapostrophe-i18n
has no effect in the presence of workflow. However other options passed to that module viaapostrophe-i18n
configuration are left intact. Thanks toehibes
for 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.