Skip to content
Discussion options

You must be logged in to vote

Hey @hishamco It started working when I moved the AddPortableObjectLocalization() registration above the custom file provider.

builder.Services.AddPortableObjectLocalization();

// Register the custom provider with the absolute path to PO files
var absolutePath = Path.Combine("C:", "LocalizationFiles");
builder.Services.AddSingleton(serviceProvider =>
{
var logger = serviceProvider.GetRequiredService();
return new CustomAbsolutePathPoFileLocationProvider(absolutePath, logger);
});

Thank you so much for your time. I am marking it as Answered

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@VenkatCharyBhairoju
Comment options

@hishamco
Comment options

@VenkatCharyBhairoju
Comment options

@VenkatCharyBhairoju
Comment options

Answer selected by VenkatCharyBhairoju
@hishamco
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants