aralroca/MNIST_React_TensorFlowJS 51
This repo is a POC about using a trained Keras model with MNIST database with TensorFlow.js and React.js!
Labelai is an online tool designed to label images, useful for training AI models
D3 graph controlled with the camara (TensorFlow.JS with posenet)
aralroca/react-text-toxicity 30
Detect text toxicity in a simple way, using React. Based in a Keras model, loaded with Tensorflow.js.
aralroca/helloworld-angular-with-golang 28
Angular 4 served by Golang server
aralroca/chat-with-deno-and-preact 26
Chat app with Deno + Preact
aralroca/fishFollow-posenet-tfjs 23
POC with posenet to move a fish with the movement of your head (using the webcam)
aralroca/running-stabilizer 18
Stabilizing any YouTube video meanwhile you are running on a jogging machine.
My personal webpage / blog
Paging badges generator
startedjosephofiowa/tensorflow-object-detection
started time in 18 hours
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 3 days
push eventvinissimus/next-translate
commit sha c2b3d3b9bc4556df6ea786021ad380ec25b8d9f4
Add docs about logger of missing keys (#282) * Add docs about logger of missing keys * Update deps
push time in 3 days
push eventvinissimus/next-translate
commit sha 9f70e751218935e5dbadf51ac4d111a48a5332a7
Update deps
push time in 3 days
startedalgolia/shipjs
started time in 3 days
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 3 days
delete branch vinissimus/next-translate
delete branch : add-logger-to-appWithI18n
delete time in 3 days
push eventvinissimus/next-translate
commit sha a71ac4257d1325a0e0b6ebf1662d230226fd710e
Add logger to appWithI18n (#281)
push time in 3 days
PR merged vinissimus/next-translate
https://github.com/vinissimus/next-translate/issues/237
pr closed time in 3 days
PR opened vinissimus/next-translate
https://github.com/vinissimus/next-translate/issues/237
pr created time in 3 days
create barnchvinissimus/next-translate
branch : add-logger-to-appWithI18n
created branch time in 3 days
issue commentvinissimus/next-translate
Provide function to log missing keys
@RobinSCU I did a prerelease 0.18.0-canary.2 with this change and improving a little bit the default logger! If you can test it and provide some feedback before the 0.18.0 it would be very useful 🙏. Thanks!
comment created time in 3 days
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 3 days
delete branch vinissimus/next-translate
delete branch : add-logger-to-config-allowing-js-ext
delete time in 3 days
push eventvinissimus/next-translate
commit sha c9bb438687031894bb6f719ba25e46ea029ca9f1
Add logger to config (#280)
push time in 3 days
PR merged vinissimus/next-translate
Closes https://github.com/vinissimus/next-translate/issues/237
CC: @giovannigiordano, @RobinSCU
It will be necessary to add the necessary documentation in the README.
There are two important changes:
- Now not only
i18n.jsonis supported, but nowi18n.jsis also supported as a configuration file, so you can have functions in the configuration, as is the case with the logger. - You can now pass
loggerto the configuration, as a function. If this function exists, it is executed in both development and production, and it is the responsibility of the implementer to make sure that their code is executed where is necessary. However, ifloggeris not passed in the configuration will run the default logger that only runs in development showing theconsole.warnas before.
pr closed time in 3 days
issue closedvinissimus/next-translate
Provide function to log missing keys
Hi,
we have a pretty large eCommerce website and unfortunately, we have some error messages/key from external APIs we don't know and they can even change. Is there a way we can log these missing keys in production so that our translation Team can find them more easily?
When we could inject an function via i18n.js like this it would be unbelievable great :) :
missingKeyHandler: (key: string): string => {
// logging part
return ''
}
Thanks Robin
closed time in 3 days
RobinSCUissue commentvinissimus/next-translate
Upgrade <Link> to reflect changes for dynamic routing
From version 9.5.7 of Next.js, the Next.js Link component itself will have the same functionality as the next-translate Link.
I share the documentation on the subject:
https://github.com/vercel/next.js/pull/18067/files
This means that maybe we can deprecate the Link and Router from next-translate so that people can use the Link and Router from Next.js directly. You will only have to replace lang with locale.
It is still experimental, and we will have to make several tests before. So for the moment, I don't close this issue. But for me, it makes sense to evolve around here, since the same functionality that I implemented will now be in the Next.js core.
comment created time in 3 days
PR opened vinissimus/next-translate
Closes https://github.com/vinissimus/next-translate/issues/237
CC: giovannigiordano, RobinSCU
It will be necessary to add the necessary documentation in the README.
There are two important changes:
- Now not only
i18n.jsonis supported, but nowi18n.jsis also supported as a configuration file, so you can have functions in the configuration, as is the case with the logger. - You can now pass
loggerto the configuration, as a function. If this function exists, it is executed in both development and production, and it is the responsibility of the implementer to make sure that their code is executed where is necessary. However, ifloggeris not passed in the configuration will run the default logger that only runs in development showing theconsole.warnas before.
pr created time in 3 days
create barnchvinissimus/next-translate
branch : add-logger-to-config-allowing-js-ext
created branch time in 3 days
push eventvinissimus/next-translate
commit sha cceada9818e2d69703a329a11769a1a5a781cdd7
Improve logger feedback messages (#279)
push time in 3 days
PR merged vinissimus/next-translate
https://github.com/vinissimus/next-translate/issues/237
There were some messages that the logger said incorrectly. With this, they are corrected giving better feedback, without saying undefined (in case there is no namespace).
pr closed time in 3 days
PR opened vinissimus/next-translate
There were some messages that the logger said incorrectly. With this, they are corrected giving better feedback, without saying undefined (in case there is no namespace).
pr created time in 3 days
issue closedvinissimus/next-translate
Hello, first of all thank you for the great library. I have everything working perfectly across locales, so /en/blah and /de/blah work great. However I need to localize quite a few routes into different locales. So I want to load [lang]/blah on de/bleh, fr/bluh etc.
I tried to get this working with the experimental rewrites from Next, but every combination I try results in a 404. If I set the destination to a static route it rewrites fine so I know the rewrites themselves are working, and the source is formatted properly.
For the destination I tried:
/:lang/blah
/:lang/blah?lang=:lang
/[lang]/blah
/[lang]/blah?lang=:lang
And various other combinations but nothing worked. Maybe I just don't follow how Next handles this internally. 🙈
I could make bleh and just import blah but that has the negative side effect of also enabling /en/bleh and just in general it's cumbersome to maintain with many routes.
I would appreciate any suggestions.
In case it matters I am using the example from here as a base (so without the build step): https://github.com/vinissimus/next-translate/tree/master/examples/with-dynamic-routes
closed time in 6 days
pix2Dissue commentvinissimus/next-translate
Using the build step the lang is not a dynamic route, it's generated at build time as /es/[blog], /en/[blog], etc. Anyway, now next.js is advancing in i18n and soon there will be better support. Perhaps it would be good to move the discussion on this issue:
- https://github.com/vercel/next.js/discussions/17078
The "build step" is a workaround as long as there is no better support, but soon things will probably be simpler and in version 1.0.0 of next-translate no build-step will be needed.
So I think it's best to close this issue and address this implementation in the Next.js RFC
comment created time in 6 days
issue commentvinissimus/next-translate
@sven-ra Using the build step the lang is added as prop to the getStaticProps.
comment created time in 6 days
delete branch guillotinaweb/guillotina_react
delete branch : aral-allow-custom-flash-function
delete time in 6 days
issue commentant-design/ant-design
Possibility to drag Select Tags around
I'm also interested in the solution 👏
comment created time in 7 days
push eventguillotinaweb/guillotina_react
commit sha 45f74a5a65e5a5f1fbe93ba300392027eca07915
Update CHANGELOG.md
push time in 7 days
push eventaralroca/image-processing-webgl
commit sha 80aa1c22c70d21d898244e88a856c34c84b23ebf
Load img
push time in 7 days
push eventguillotinaweb/guillotina_react
commit sha 483d39b8f23f4b80b2bd28c5a3cf35b4f2da3ab3
Fix issue with React and microbundle (#63)
commit sha 7147b7869a50cdc8630f502325d42630beb8ede2
bump 0.6.3
commit sha 9db2719f97b71e1dcaca462f8a47192679ba76f2
Merge branch 'master' into aral-allow-custom-flash-function
push time in 9 days
PR opened guillotinaweb/guillotina_react
By default, the "flash" still has the same behavior as before. But at the same time, now from the configuration you can modify the behavior.
For example, if we want to use antd's message, we could do it with:
import { message } from 'antd';
// ...
const supportedMessageType = new Set(['error', 'warning', 'success']);
const config = {
flash: (msg, type) => {
if (supportedMessageType.has(type)) return message[type](msg);
message.error(msg);
}
...restOfConfig,
}
// ...
return (
<Guillotina
client={client}
config={config}
url={url}
registry={registry}
/>
)

pr created time in 9 days
create barnchguillotinaweb/guillotina_react
branch : aral-allow-custom-flash-function
created branch time in 9 days
issue commentvinissimus/next-translate
The Trans tag in React, if you re-use a tag it gives a key error.
@zeg-io thanks to report the issue 😊 I fixed and prereleased on 0.18.0-canary.1. Now it should work 👍 It will be finally released on 0.18.0 during the next weeks.
comment created time in 11 days
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 11 days
PR merged vinissimus/next-translate
Closes https://github.com/vinissimus/next-translate/issues/277
pr closed time in 11 days
push eventvinissimus/next-translate
commit sha 1728a4841e5a8dd0e150e3c0869f9a4fc5a9a4ec
Fix Trans key on their children components (#278)
push time in 11 days
issue closedvinissimus/next-translate
The Trans tag in React, if you re-use a tag it gives a key error.
In the case of the following translation I get the standard react key missing error.
"somekey": "this text contains <0>bold text</0> and this other text <0>is also bold</0>."
<Trans
i18nKey={'ns:somekey'}
components={[<b />]}
/>
However, if I do not attempt to reuse the component it works fine:
"somekey": "this text contains <0>bold text</0> and this other text <1>is also bold</1>."
(note the <1> tag)
<Trans
i18nKey={'ns:somekey'}
components={[<b />, <b />]}
/>
closed time in 11 days
zeg-ioPR opened vinissimus/next-translate
Closes https://github.com/vinissimus/next-translate/issues/277
pr created time in 11 days
issue commentKovDimaY/React-Highcharts
DEV-36 Add and apply prettier to the project
I didn't do it to make the review easier
comment created time in 11 days
issue commentKovDimaY/React-Highcharts
DEV-36 Add and apply prettier to the project
You should run npm run format:all and then do a commit with all the formatted files 😊
comment created time in 11 days
PR opened guillotinaweb/guillotina_react
Before:

Now:

What was happening?
This code:
React.useEffect(() => {
(async () => {
await get("@behaviors");
})();
}, []);
After microbundle it becomes to:
React.useEffect(function () {
try {
return Promise.resolve(get("@behaviors")).then(function () {});
} catch (e) {
Promise.reject(e);
}
}, []);
As useEffect works in (P)React, here the cleanup is a promise... And should be a function! So when the component is unmounted can't unmount well, throwing an error. The issue can be reproduced whenever we leave the Behaviors or Permissions tab.
Changing the content of the useEffect to:
React.useEffect(() => { get("@behaviors") }, []);
It solves the problem. get("@behaviors") returns a promises, but is not necessary to indicate that the function is async because we don't need to await that promise. So now there isn't a wrong cleanup for the unmount event.
pr created time in 12 days
push eventvinissimus/opencv-js-webworker
commit sha b83baecda6b39d66959f85616a9be174b6b44674
Bump junit from 4.8.1 to 4.13.1 in /opencv_src/platforms/maven/opencv-it (#4) Bumps [junit](https://github.com/junit-team/junit4) from 4.8.1 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.8.1...r4.13.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
push time in 12 days
PR merged vinissimus/opencv-js-webworker
Bumps junit from 4.8.1 to 4.13.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/junit-team/junit4/releases">junit's releases</a>.</em></p> <blockquote> <h2>JUnit 4.13.1</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.13.1.md">release notes</a> for details.</p> <h2>JUnit 4.13</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.13.md">release notes</a> for details.</p> <h2>JUnit 4.13 RC 2</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 RC 1</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 Beta 3</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 Beta 2</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 Beta 1</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.12</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.12.md">release notes</a> for details.</p> <h2>JUnit 4.12 Beta 3</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.12.md">release notes</a> for details.</p> <h2>JUnit 4.12 Beta 2</h2> <p>No release notes provided.</p> <h2>JUnit 4.12 Beta 1</h2> <p>No release notes provided.</p> <h2>JUnit 4.11</h2> <p>No release notes provided.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md">junit's changelog</a>.</em></p> <blockquote> <h2>Summary of changes in version 4.13.1</h2> <h1>Rules</h1> <h3>Security fix: <code>TemporaryFolder</code> now limits access to temporary folders on Java 1.7 or later</h3> <p>A local information disclosure vulnerability in <code>TemporaryFolder</code> has been fixed. See the published <a href="https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp">security advisory</a> for details.</p> <h1>Test Runners</h1> <h3>[Pull request <a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1669">#1669</a>:](<a href="https://github-redirect.dependabot.com/junit-team/junit/pull/1669">junit-team/junit#1669</a>) Make <code>FrameworkField</code> constructor public</h3> <p>Prior to this change, custom runners could make <code>FrameworkMethod</code> instances, but not <code>FrameworkField</code> instances. This small change allows for both now, because <code>FrameworkField</code>'s constructor has been promoted from package-private to public.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/junit-team/junit4/commit/1b683f4ec07bcfa40149f086d32240f805487e66"><code>1b683f4</code></a> [maven-release-plugin] prepare release r4.13.1</li> <li><a href="https://github.com/junit-team/junit4/commit/ce6ce3aadc070db2902698fe0d3dc6729cd631f2"><code>ce6ce3a</code></a> Draft 4.13.1 release notes</li> <li><a href="https://github.com/junit-team/junit4/commit/c29dd8239d6b353e699397eb090a1fd27411fa24"><code>c29dd82</code></a> Change version to 4.13.1-SNAPSHOT</li> <li><a href="https://github.com/junit-team/junit4/commit/1d174861f0b64f97ab0722bb324a760bfb02f567"><code>1d17486</code></a> Add a link to assertThrows in exception testing</li> <li><a href="https://github.com/junit-team/junit4/commit/543905df72ff10364b94dda27552efebf3dd04e9"><code>543905d</code></a> Use separate line for annotation in Javadoc</li> <li><a href="https://github.com/junit-team/junit4/commit/510e906b391e7e46a346e1c852416dc7be934944"><code>510e906</code></a> Add sub headlines to class Javadoc</li> <li><a href="https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbc52ae"><code>610155b</code></a> Merge pull request from GHSA-269g-pwp5-87pp</li> <li><a href="https://github.com/junit-team/junit4/commit/b6cfd1e3d736cc2106242a8be799615b472c7fec"><code>b6cfd1e</code></a> Explicitly wrap float parameter for consistency (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1671">#1671</a>)</li> <li><a href="https://github.com/junit-team/junit4/commit/a5d205c7956dbed302b3bb5ecde5ba4299f0b646"><code>a5d205c</code></a> Fix GitHub link in FAQ (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1672">#1672</a>)</li> <li><a href="https://github.com/junit-team/junit4/commit/3a5c6b4d08f408c8ca6a8e0bae71a9bc5a8f97e8"><code>3a5c6b4</code></a> Deprecated since jdk9 replacing constructor instance of Double and Float (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1660">#1660</a>)</li> <li>Additional commits viewable in <a href="https://github.com/junit-team/junit4/compare/r4.8.1...r4.13.1">compare view</a></li> </ul> </details> <br />
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
<details> <summary>Dependabot commands and options</summary> <br />
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.
</details>
pr closed time in 12 days
issue commentvinissimus/next-translate
Different languages base on the domain
Yes, I hope so too!
comment created time in 14 days
issue commentvinissimus/next-translate
Different languages base on the domain
@TheFullResolution we are currently using the "custom server" version, documented here:
- https://github.com/vinissimus/next-translate/blob/master/docs/USING_CUSTOM_SERVER.md
For the redirects, we are using an extra Node middleware that checks the location and the lang and redirects (or no) to the correct one.
Although we currently have this implementation, the Next.js team now advises against using a custom server, as you can now use their own API for redirects and middleware. I guess we will gradually migrate to this option.
Hope it helps.
comment created time in 14 days
issue closedvinissimus/next-translate
I want to know how can i set dir for HTML tag in _document ? for example next-i18next provides a function called "i18n.dir" it gets a lang name to give its direction
i18n.dir("en") ==> "ltr".
HTML direction for some langs like persian and arabic must be "rtl"
closed time in 14 days
saeedPadyabissue commentvinissimus/next-translate
@saeedPadyab I close the issue, if you still have a problem, don't hesitate to reopen the issue.
comment created time in 14 days
issue commentvinissimus/next-translate
@saeedPadyab you can set dir for HTML tag in _document doing:
import Document, { Html, Head, Main, NextScript } from 'next/document'
import documentLang from 'next-translate/documentLang'
const rtlLangs = new Set(['ar', 'dv', 'fa'])
export default class MyDocument extends Document {
const lang = documentLang(this.props)
const dir = rtlLangs.has(lang) ? 'rtl' : 'ltr'
render() {
return (
<Html lang={lang} dir={dir}>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
}
And to ensure to work when browsing pages to another language, you can include a hook:
import { useRouter } from 'next/router'
// ...
const { pathname } = useRouter()
useEffect(() => { document.dir = rtlLangs.has(lang) ? 'rtl' : 'ltr' }, [pathname])
Hope it helps.
comment created time in 14 days
delete branch vinissimus/next-translate
delete branch : all-contributors/add-thanhlmm
delete time in 14 days
push eventvinissimus/next-translate
commit sha 8088a4a658077a5838a747ca1edde687be573883
docs: add thanhlmm as a contributor (#274) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
push time in 14 days
PR merged vinissimus/next-translate
Adds @thanhlmm as a contributor for code.
This was requested by aralroca in this comment
pr closed time in 14 days
pull request commentvinissimus/next-translate
@allcontributors please add @thanhlmm for code
comment created time in 14 days
push eventvinissimus/next-translate
commit sha 29ebc0664ad3664dcef31a5f2326c547c7998637
Ignore copy css file (#273) Co-authored-by: Le Thanh <[email protected]>
push time in 14 days
PR merged vinissimus/next-translate
Fix bug can not copy style file to build folder (.css, .scss files)
We no longer need to copy styles file to destination folder as Nextjs document said that we can put style file anywhere.
Impact on current build: None
pr closed time in 14 days
pull request commentvinissimus/next-translate
@thanhlmm thank you a lot for your contribution!
comment created time in 14 days
issue commentvinissimus/next-translate
Provide function to log missing keys
I think the best option is to allow i18n.js for the configuration, because i18n.json is not possible to storage functions. This way the missingKeyLogger function can be added to the config in a simple way. We can support both, .js and .json to don't add any breaking change.
comment created time in 15 days
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 15 days
push eventvinissimus/next-translate
commit sha b0da974fb1409ff9824163fc909dbb0521ac2b0c
Update version
push time in 15 days
pull request commentvinissimus/next-translate
@giovannigiordano I prereleased under 0.17.3-canary.5
comment created time in 16 days
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 16 days
push eventvinissimus/next-translate
commit sha 7d5f3a64198aaa76dd82c71e13c4bb2aa702f488
Update package.json
push time in 16 days
push eventvinissimus/next-translate
commit sha fbdd49bdd59569bcbdc3da2ff0039d7618e4c680
Add logger for missing keys (#262) * Add logger for missing keys * disable warn when NODE_ENV is production
push time in 16 days
PR merged vinissimus/next-translate
Add a logger for missing keys. The logger function can be overwritten by passing it as a prop to I18nProvider.
Close #237
pr closed time in 16 days
issue closedvinissimus/next-translate
Provide function to log missing keys
Hi,
we have a pretty large eCommerce website and unfortunately, we have some error messages/key from external APIs we don't know and they can even change. Is there a way we can log these missing keys in production so that our translation Team can find them more easily?
When we could inject an function via i18n.js like this it would be unbelievable great :) :
missingKeyHandler: (key: string): string => {
// logging part
return ''
}
Thanks Robin
closed time in 16 days
RobinSCUissue commentvinissimus/next-translate
Upgrade <Link> to reflect changes for dynamic routing
@shunkakinoki I prereleased the PR under 0.17.3-canary.4 if you want to try it.
comment created time in 16 days
created tagvinissimus/next-translate
Tool to translate Next.js applications ○ (Static) | ● (SSG) | λ (Server) - ~1kb
created time in 16 days
issue commentvinissimus/next-translate
Upgrade <Link> to reflect changes for dynamic routing
I reopen the issue because although I have merged the PR because it didn't block, we still need to solve the navigation with dynamic-routing + custom server
comment created time in 16 days
delete branch vinissimus/next-translate
delete branch : dynamic-routes-new-way
delete time in 16 days
push eventvinissimus/next-translate
commit sha 392e0dffb3962df175171c2b4f31254cbad75e36
Support pathname and query as href object (#255) * Support pathname and query as href object * Update dep * Update examples next.js version
push time in 16 days
issue closedvinissimus/next-translate
Upgrade <Link> to reflect changes for dynamic routing
Hi once again! Thanks for the awesome project
Since v9.5.3, it seems like the <Link> component was updated for dynamic routing,
making the prop as= behave as href=
Updating the canary package to reflect this would be great!
Links: https://github.com/vercel/next.js/pull/16774 https://github.com/vercel/next.js/pull/16634
closed time in 16 days
shunkakinokiPR merged vinissimus/next-translate
Closes https://github.com/vinissimus/next-translate/issues/250
TODO:
- [ ] Support with custom server (I don't know yet how to replace the
asto redirect to the current language)

pr closed time in 16 days
push eventvinissimus/next-translate
commit sha e6f5f304f2b2dba5548575039f32a9bf5a9ed5fc
Update examples next.js version
push time in 16 days
push eventvinissimus/next-translate
commit sha b8f5ff6802725bf2f03852fadfcd8e16b6b6c514
Add tests to Link utils (#263) * add test for fixAs * add tests for fixHref
commit sha c07c011aa5980930f66b8a9384691c3b09377012
Allow Anchors / Hashes in URL paths (#265) * Add condition to fixHref to handle hashes in url. Update fixHref.test.js. * Update fixAs.test.js to also assert for hashes in url. * Modify startsWithLang to handle hash in url. Add tests. * Fix getLang not handling hash in url path
commit sha e996bfd0018bacbe157c91362fc44c9e4dbc190b
docs: add hibearpanda as a contributor (#267) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
commit sha 9d54f1175785d6733d431d6d2c0211797c14ab9d
Bump next from 9.5.2 to 9.5.4 (#268) Bumps [next](https://github.com/vercel/next.js) from 9.5.2 to 9.5.4. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v9.5.2...v9.5.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
commit sha 13bfee057b9a9ccdbf6bfc839729ac233b017e2d
Merge branch 'master' of github.com:vinissimus/i18n-next-static into dynamic-routes-new-way # Conflicts: # package.json # src/fixHref.js # yarn.lock
push time in 16 days
issue closedvinissimus/next-translate
Hi once again!
Next v9.5.5 has been released today, with initial changes for i18n https://github.com/vercel/next.js/releases/tag/v9.5.5
As far as I have tested, the lang path seems to be automatically generated/handled by next.js, perhaps eradicating entirely the need for a build step? How will the library evolve to v1.0.0 given the official i18n rfc?
I'm happy to devote as much as possible to contribute to this awesome library!
closed time in 16 days
shunkakinokiissue commentvinissimus/next-translate
@shunkakinoki I think it is better to move the discussion into this existing issue: https://github.com/vinissimus/next-translate/issues/129
Initially, when I created this library I did the build-step as a workaround while there was no better solution. Now that it seems that Next.js is focusing on improving support for i18n, I think the most sensible thing is to adapt to its way, eliminating the build-step and other possible workarounds.
I still have doubts about how to support totally static pages (yarn export) without the build-step. Although the Next.js team comments that it is a very small percentage of the people who use Next.js, I myself for example have some projects on CDNs using Next.js + next-translate + yarn export... 🤔
That said. I close the issue and we move the discussion to the already open issue to talk about the evolution of this library.
comment created time in 16 days
push eventaralroca/labelai
commit sha 6ccc6cbcf39400dedeb876d288729d722b6c58d6
Bump next from 9.5.3 to 9.5.4 (#74) Bumps [next](https://github.com/vercel/next.js) from 9.5.3 to 9.5.4. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v9.5.3...v9.5.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
push time in 17 days
delete branch aralroca/labelai
delete branch : dependabot/npm_and_yarn/next-9.5.4
delete time in 17 days