i18n-keyless-core 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +6 -6
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -144,21 +144,21 @@ interface TranslationStoreState {
|
|
|
144
144
|
}
|
|
145
145
|
export type TranslationOptions = {
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
147
|
+
* The context of the translation.
|
|
148
|
+
* Useful for ambiguous translations, like "8 heures" in French could be "8 AM" or "8 hours".
|
|
149
149
|
* You'll find it useful when it occurs to you, don't worry :)
|
|
150
150
|
*/
|
|
151
151
|
context?: string;
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* Could be helpful if something weird happens with this particular key.
|
|
154
154
|
*/
|
|
155
155
|
debug?: boolean;
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* If the proposed translation from AI is not satisfactory,
|
|
158
158
|
* you can use this field to setup your own translation.
|
|
159
|
-
* You can leave it there forever, or remove it once your translation is saved
|
|
159
|
+
* You can leave it there forever, or remove it once your translation is saved.
|
|
160
160
|
*/
|
|
161
|
-
forceTemporary?: Record<Lang, string
|
|
161
|
+
forceTemporary?: Partial<Record<Lang, string>>;
|
|
162
162
|
};
|
|
163
163
|
interface TranslationStoreActions {
|
|
164
164
|
_hydrate: () => Promise<void>;
|