Viliam Simko

Results 18 comments of Viliam Simko

Here is a dirty workaround which disables flexsearch in dev mode: ```js { use: "gridsome-plugin-flexsearch", options: { searchFields: ["title", "subtitle", "excerpt", "tags", "content"], collections: process.env.NODE_ENV === "development" ? [] :...

maybe you actually need this: https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/#publishing-your-github-pages-site-from-a-docs-folder-on-your-master-branch

Hi, I noticed that if custom message is specified, the `errorMap` function will never be called. https://github.com/colinhacks/zod/blob/630a2aa082fdcc5c1ebd76f8aa819bf07fd1f27f/src/helpers/parseUtil.ts#L88-L92 I have a use case where I want to use **localization keys as...

What if the schema is defined on a per-form basis (e.g react-hook-form) and I need to localize error messages (react-i18next). ```ts // schema definition: notice the translation using t("...") const...

Until I find a better solution, I implemented the following workaround in my code: ```ts import i18n, { TFunction } from "i18next"; class TranslatedString extends String { toString(): string {...

Let me share my latest workaround for this (updated since May 17): ```ts // file: zod-translation.ts import i18n, { TOptions } from "i18next"; class TranslatedString extends String { private readonly...

Already implement types: - `complex` converted to a 2-column matrix (Re, Im) - `Date` converted to an integer (positive/negative) representing number of seconds since 1970 Any ideas for the `array`...

`array` is a multi-dimensional matrix. One of the problems is to produce different hashes for differently shaped arrays that contain the same data: ``` r # the same content for...

any other problems that need to be addressed before I create a pull request ?

**Note:** the current implementation assumes that: `sha1(2+0i) != sha1(2)` (conservative approach, but maybe mathematically incorrect)