Skip to content

Enhancement: return a work in progress string instead of a placeholder in GetValue() #36

@gsgou

Description

@gsgou

Hello,

I'd like to suggest a modification to the GetValue(string text) method in the LocalizationResourceManager.

Current Behavior:
The method throws a NullReferenceException or presents a placeholder when setup accordingly:
settings.SuppressTextNotFoundException(true, "Text:{0}");

when I use it in xaml like that:
xmlns:loc="clr-namespace:LocalizationResourceManager.Maui;assembly=LocalizationResourceManager.Maui"

Proposed Change:

In quick development cycles or MVPs and presentations usually one language is dominant for decisions and approvals.
Instead of showing the name of a key following some naming conventions, it might be more developer-friendly to return a declared work in progress key.

I believe this change would enhance the overall usability of the library. Your feedback on this suggestion would be greatly appreciated.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions