@donotdev/core 0.2.0 → 0.2.1
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/index.d.ts +2 -4
- package/index.js +4 -4
- package/package.json +2 -2
- package/server.js +1 -14
- package/symbol-index.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24616,11 +24616,9 @@ interface UseTranslationResult {
|
|
|
24616
24616
|
*
|
|
24617
24617
|
* @example
|
|
24618
24618
|
* ```tsx
|
|
24619
|
-
* // Array translations
|
|
24619
|
+
* // Array translations
|
|
24620
24620
|
* const { t } = useTranslation('features');
|
|
24621
|
-
* const benefits =
|
|
24622
|
-
* .map(i => t(`benefits.${i}`))
|
|
24623
|
-
* .filter(text => text && !text.startsWith('['));
|
|
24621
|
+
* const benefits = t('benefits', { returnObjects: true }) as unknown as string[];
|
|
24624
24622
|
* ```
|
|
24625
24623
|
*
|
|
24626
24624
|
* @public
|