Skip to content

Add baseHref setting to the sourceLocale #17144

@santhony7

Description

@santhony7

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Description

I don't think this is possible now or I have not found a good solution. You added the ability to specify a baseHref in each locale during i18n but no way to specify the baseHref for the sourceLocale. Not sure how else to specifiy a baseHref="/" for en. Compiler always makes it '/en/'.

Describe the solution you'd like

Change the schema to allow an object for sourceLocal that has a property of baseHref.

Describe alternatives you've considered

The only workaround I have found it to create two builds: One for english and one for all other locales.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions