Skip to content

Commit

Permalink
Add link popup "URL" to translatable strings
Browse files Browse the repository at this point in the history
So people can add a different label if they want to.
I've made it backwards compatible by adding the `|| 'URL'` since no translation file has this string yet.

People can then override this string by overriding the translation. eg:
`
($ as any).trumbowyg.langs.nl = {
	...($ as any).trumbowyg.langs.nl,
	url: 'Link',
	target: 'Open in',
};
`
  • Loading branch information
bertyhell authored Apr 16, 2020
1 parent cdcba95 commit dd81df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trumbowyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {

var options = {
url: {
label: 'URL',
label: t.lang.linkUrl || 'URL',
required: true,
value: url
},
Expand Down

0 comments on commit dd81df4

Please sign in to comment.