Skip to content

Allow using arrays of strings as messages in package.nls.json #203362

@mjbvz

Description

@mjbvz

Writing and maintaining multiline strings in a package.nls.json is a pain since you end up with long, single line strings with explicit \n:

{
	"configuration.markdown.editor.filePaste.videoSnippet": "Snippet used when adding videos to Markdown. This snippet can use the following variables:\n- `${src}` — The resolved path of the video file.\n- `${title}` — The title used for the video. A snippet placeholder will automatically be created for this variable.",
}

I propose we support an array of strings which are then automatically joined with new line characters (likely as a build step):

{
  "configuration.markdown.editor.filePaste.videoSnippet": [
    "Snippet used when adding videos to Markdown. This snippet can use the following variables:",
    "- `${src}` — The resolved path of the video file.",
    "- `${title}` — The title used for the video. A snippet placeholder will automatically be created for this variable."
  ]
}

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityl10n-platformLocalization platform issues (not wrong translations)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions