jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

Allow user to configure result messages #337

Open glepretre opened 1 year ago

glepretre commented 1 year ago

User can currently configure the result noun, singular and plural: https://github.com/jameslittle230/stork/blob/de70fb01688725b7955aa8a48b4fda7ef8be7993/js/config.ts#L26

But this noun is used in hardcoded sentences:

https://github.com/jameslittle230/stork/blob/de70fb01688725b7955aa8a48b4fda7ef8be7993/js/entity.ts#L47-L58

image

Would it be possible to configure these messages too?

Our use case is to simply translate them, for a French only website.

jameslittle230 commented 1 year ago

Thanks for the request! I'm almost entirely focused on Stork 2.0.0 now, and I'm excited to say that this feature will be available in the 2.0.0 release.