apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

Localization documentation typo

Open romainligneul opened this issue 11 months ago • 1 comments

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

romainligneul avatar Jan 17 '25 20:01 romainligneul

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

boutell avatar Jan 17 '25 21:01 boutell

Documentation updated

BoDonkey avatar Jul 17 '25 09:07 BoDonkey