Skip to content

[FEATURE] New config setting ´system.languageFileCsvSeparator´#430

Open
awestbunk wants to merge 1 commit into
evershopcommerce:mainfrom
awestbunk:TASK-fix-translation-csv-related-translation-bugs
Open

[FEATURE] New config setting ´system.languageFileCsvSeparator´#430
awestbunk wants to merge 1 commit into
evershopcommerce:mainfrom
awestbunk:TASK-fix-translation-csv-related-translation-bugs

Conversation

@awestbunk

@awestbunk awestbunk commented Jan 6, 2024

Copy link
Copy Markdown

The option allows to define the separator character used in the translation files and updates all german files to use ´;´ instead of ´,´. Default to ´,´ for backwards compatibility.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Several languages e.g. german use , as regular set character. Since the translation files use , as column separator the german language breaks the translation behaviour in some cases.

Issue Number: N/A

What is the new behavior?

The new setting allows to define any other character to be used as separator in language files, e.g. ; which lead to working translations when the label contains a ,.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This commit also updates the separator character to ;. If you use german language update your config/default.json

{
    "shop" : {
        ...
        "language": "de"
    },
    "system": {
        ...
        "languageFileCsvSeparator": ";"
    }
}

…hich allows to define the separator character used in the translation files and updates all german files to use ´;´ instead of ´,´.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant