Replies: 4 comments 2 replies
-
e.g. key: the processed translation would be needed to interpolate / replace these named values somehow, prior passing it down to the internal |
Beta Was this translation helpful? Give feedback.
-
Most significant problem to solve is, that the invocation of public virtual LocalizedString this[string name, params object[] arguments]
{
get
{
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}
var format = GetStringSafely(name, null);
var value = string.Format(CultureInfo.CurrentCulture, format ?? name, arguments); // <--this little fella here
return new LocalizedString(name, value, resourceNotFound: format == null, searchedLocation: _resourceBaseName);
}
} |
Beta Was this translation helpful? Give feedback.
-
might be best to implement this as custom
or whatever templating solution might be suitable / performant / fancy enough This way, this feature would not be bound to |
Beta Was this translation helpful? Give feedback.
-
Lightweight solution to let developers provide custom logic has been implemented in #42 without the need to implement a rather heavy-weight custom Could still be an interesting concept, though. But way out-of-scope for TypealizR. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As a translator, I want to re-use parameter-names from a ressource´s key in the translation provided, to prevent mismatches in the used order within my translations, to not accidently break a translation.
Beta Was this translation helpful? Give feedback.
All reactions