You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
I think this would be an easy thing to address... might as well. In the meantime, you can always provide a render.option_create function in the settings to custom-render that dropdown item.
As someone who's native tongue is French, I'd be inclined to accept a PR making this simpler. We could add an option allowing you to spectify a string (eg. addString: "Add %{name}") or a function addString: function(word){ I18n.t("selectize.add", word)}.
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.
It's been a while I haven't touched this project, but I would imagine a PR that makes it possible to specify the language string in the options would be a great start.
– Oops, actually that's what #902 proposed and I closed the PR in favor of this one. (harsh.) Funny how I don't agree with my past self anymore, I think something along the lines of #902 is a good idea, maybe a bit more fleshed out. But again, I'm not the one who puts much work in this project anymore so that's only my own personal opinion!
always welcome a PR, my time is stretched these days too, and I fully admit that my i18n skills are underdeveloped. I agree that #902 at least feels more simple to implement, but I would need to do some research before jumping in myself
Activity
brianreavis commentedon Jun 5, 2013
I think this would be an easy thing to address... might as well. In the meantime, you can always provide a
render.option_createfunction in the settings to custom-render that dropdown item.nurikabe commentedon May 23, 2014
+1
raulromanp commentedon Oct 16, 2014
+1
danielfariati commentedon Nov 20, 2014
+1
deepugn commentedon Dec 17, 2014
+1
iainvdw commentedon Aug 3, 2015
+1
klzns commentedon Sep 2, 2015
If anyone is wondering how to change it as @brianreavis suggested, just do something like this:
joallard commentedon Jan 3, 2016
As someone who's native tongue is French, I'd be inclined to accept a PR making this simpler. We could add an option allowing you to spectify a string (eg.
addString: "Add %{name}") or a functionaddString: function(word){ I18n.t("selectize.add", word)}.Merge pull request selectize#16 from jwforres/set_selector_error
Oxicode commentedon May 4, 2016
+1
joallard commentedon May 4, 2016
I'll go even further in this, the function would be called with two params,
function(word, key), allowing one to do:addString: I18n.tinstead of:
addString: function(word, key){ I18n.t(word, key) }Default:
I18n.tif exists (or whatever is the JS convention for translation), or"Add %{name}".or something automagic like that.
joallard commentedon May 9, 2016
joallard commentedon May 9, 2016
Here's what I see:
joallard commentedon Jul 20, 2016
Libraries i18next, I18n-js and Polyglot all use syntax
.t()risadams commentedon Nov 12, 2020
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.
pixelbart commentedon Jun 20, 2022
Is it possible to translate things meanwhile?
For example, remove-single has "remove" in the title. This would have to be translated for my use case.
joallard commentedon Jun 25, 2022
It's been a while I haven't touched this project, but I would imagine a PR that makes it possible to specify the language string in the options would be a great start.
– Oops, actually that's what #902 proposed and I closed the PR in favor of this one. (harsh.) Funny how I don't agree with my past self anymore, I think something along the lines of #902 is a good idea, maybe a bit more fleshed out. But again, I'm not the one who puts much work in this project anymore so that's only my own personal opinion!
risadams commentedon Jun 30, 2022
always welcome a PR, my time is stretched these days too, and I fully admit that my i18n skills are underdeveloped. I agree that #902 at least feels more simple to implement, but I would need to do some research before jumping in myself
gotivac commentedon Oct 26, 2024
Huh?