From abdba0a38992937b200c14e9161bbc8f79f73f95 Mon Sep 17 00:00:00 2001 From: meh Date: Sun, 26 Jul 2026 05:18:22 +0700 Subject: [PATCH] docs: stop naming a private repo in createI18n comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two comments cited a private application repository's internal i18nStore as the API this matches. This library is public; the comments make the same point without the name. Comment-only — no behaviour change. Co-Authored-By: Claude Opus 5 --- src/components/language-switcher/createI18n.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/language-switcher/createI18n.tsx b/src/components/language-switcher/createI18n.tsx index 81a5dd5c..6098943e 100644 --- a/src/components/language-switcher/createI18n.tsx +++ b/src/components/language-switcher/createI18n.tsx @@ -77,7 +77,8 @@ function getNestedValue(obj: unknown, path: string): string { /** * Creates an i18n store with configurable options. - * API matches nofilter.io's i18nStore for easy migration. + * API matches the i18nStore pattern used across consuming apps, so migrating + * an existing store to this one is a drop-in. * * @example * ```tsx @@ -181,7 +182,7 @@ export function createI18n(options: I18nOptions): I18nStore { await setLocale(detected); }; - // Return object with getters for reactive properties (matches nofilter.io API) + // Return object with getters for reactive properties (matches the i18nStore API) return { get locale() { return localeSignal(); }, get isLoading() { return isLoadingSignal(); },