Localization documentation typo
In here https://docs.apostrophecms.org/reference/module-api/module-options.html#i18n
module.exports = {
extend: '@apostrophecms/module',
options: {
i18n: {
namespace: 'projectName',
browser: true
}
}
}
Should be
module.exports = {
extend: '@apostrophecms/module',
options: {
i18n: {
namespace: 'projectName',
browser: true
}
}
}
namespace does not work as an attribute. It should be np
Thanks, we'll fix that, yes it should be "ns"
However this entire approach is deprecated and that should be clearly noted (but it isn't right now).
This is the strongly recommended way:
https://docs.apostrophecms.org/guide/localization/static.html#localizing-your-own-custom-apostrophe-user-interface-modules
On Fri, Jan 17, 2025 at 3:39 PM Romain Ligneul @.***> wrote:
In here
https://docs.apostrophecms.org/reference/module-api/module-options.html#i18n
module.exports = { extend: @.***/module', options: { i18n: { namespace: 'projectName', browser: true } } }
Should be
module.exports = { extend: @.***/module', options: { i18n: { namespace: 'projectName', browser: true } } }
namespace does not work as an attribute. It should be np
— Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe/issues/4839, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH27NARZX4LYUFQOSFUDD2LFTBLAVCNFSM6AAAAABVMVYJKCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TMMRVGY2TAOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his
Documentation updated