profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/PeterAlfredLee/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

originjs/docs 2

https://originjs.github.io/docs/

originjs/vue-sfc-ast-parser 0

Extracted from vue-codemod. A ast parser for vue sfc.

PeterAlfredLee/awesome-vite 0

⚡️ A curated list of awesome things related to Vite.js

PeterAlfredLee/bundle-tools 0

bundling for intlify i18n tools

PeterAlfredLee/cli 0

CLI Tooling for i18n development

PeterAlfredLee/coding-interview-university 0

A complete computer science study plan to become a software engineer.

PeterAlfredLee/commons-cli 0

Mirror of Apache Commons CLI

PeterAlfredLee/commons-compress 0

Mirror of Apache Commons Compress

issue commentintlify/vue-i18n-jest

change to monorepo structure?

Sure. I will have a look at this first.

kazupon

comment created time in 17 hours

issue commentintlify/vue-i18n-next

Type inference with the `watch` callback argument for `locale`.

@kazupon

This might be a work around:

watch(() => locale.value, newLocale => {
  console.log(typeof newLocale)
})

I just tested, in this case, the type of newLocale is string.

kazupon

comment created time in a day

issue commentintlify/vue-i18n-next

When switching languages, the data reactive is lost

@ue360 https://www.npmjs.com/package/vue-i18n/v/9.2.0-beta.14

npm works fine. Or you can wait for the Yarn warehouse to update.

jiaozhiye

comment created time in 2 days

issue commentintlify/vue-i18n-next

When switching languages, the data reactive is lost

@PeterAlfredLee you can try my repo here

https://github.com/zynth17/vitailse/tree/vue-i18n-bug

@zynth17 I just checked, it's caused by #736. In short, when you use vue-i18n@9.2.0-beta.13, you will use vue-i18n.esm-browser.prod.js which has a tree-shaking issue.

vue-i18n-next has fixed # 736 in #754, but no new version has been released yet.

@kazupon I think we should release a new version from repo. WDYT?

jiaozhiye

comment created time in 2 days

issue commentintlify/vue-i18n-next

When switching languages, the data reactive is lost

@zynth17

here is the sandbox https://codesandbox.io/s/unruffled-pine-lnccl?file=/src/main.js

I just checked. Your error has nothing to do with vue-i18n@9.2.0-beta.13.

First, you should keep id.json the same structure as en.json. Like this: id.json

{
  "intro": {
    "desc": "Untuk panduan dan tata cara mengatur atau mengubah projek ini, mohon cek "
  }
}

Second, there is a wrong line in your App.vue file that should be corrected, as follows: App.vue

-    <option v-for="locale in availableLocales" :key="locale" value="locale">
+    <option v-for="locale in availableLocales" :key="locale" :value="locale">

Here's the modified code: https://codesandbox.io/s/jolly-archimedes-1l4zo

jiaozhiye

comment created time in 2 days

issue commentintlify/vue-i18n-next

When switching languages, the data reactive is lost

@jiaozhiye I could not reproduce this issue. Could you give us the minimum repo code, please?

jiaozhiye

comment created time in 2 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha 6ce6e1eecf08cb421048006317bab3574184873d

fix: fix tests failure

view details

push time in 3 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha 4038ebab82046e32ae0ea3d3a3c02e51b8f9710e

feat: add federation plugin

view details

push time in 3 days

delete branch PeterAlfredLee/vue-i18n-next

delete branch : modify_terser_option

delete time in 3 days

issue commentintlify/vue-i18n-next

follow up with #669

@kazupon

Just opened PR #754, please check it.

gwang74

comment created time in 3 days

issue commentintlify/vue-i18n-next

follow up with #669

@kazupon

yes, We need to find out why it's tree-shaked.

I think I found it.

It's caused by terser option pure_getters: true. See terser doc, it says:

pure_getters (default: "strict") -- If you pass true for this, Terser will assume that object property access (e.g. foo.bar or foo["bar"]) doesn't have any side effects. Specify "strict" to treat foo.bar as side-effect-free only when foo is certain to not throw, i.e. not null or undefined.

I just tested, if you remove this line : https://github.com/intlify/vue-i18n-next/blob/6154508272590ddd1b65ac297c2690b7cd1cca53/rollup.config.js#L279

The call of trackReactivityValues will not be removed from vue-i18n.global.prod.js and everything works fine.

gwang74

comment created time in 3 days

create barnchPeterAlfredLee/vue-i18n-next

branch : modify_terser_option

created branch time in 3 days

push eventPeterAlfredLee/vue-i18n-next

Lee

commit sha 553d25e322a1fa0e178d50ec53659dd7015034f3

fix not a function error (#748)

view details

kazuya kawaguchi

commit sha efecc259e66d58dcdfce637cf4c3512a46bf56bf

fix(core): change to full package

view details

kazuya kawaguchi

commit sha c35a1845ae03082a37cf2034d1e9a264bd17003a

prerelease release v9.2.0-beta.13 (#749)

view details

kazuya kawaguchi

commit sha bd2cfb5b6b63704bfedfa360459b5fd44ffe73d4

fix: shipjs config

view details

push time in 3 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha cb938bff3f8a01bd618f415c3ff29a67dacbff7b

feat: update desc for plugins

view details

push time in 4 days

delete branch PeterAlfredLee/vue-i18n-next

delete branch : fix_not_a_func_err

delete time in 4 days

issue commentintlify/vue-i18n-next

Runtime Error - TypeError: o is not a function

So I think we should use vue-i18n.esm-browser.prod.js in browser by default. WDYT?

@kazupon

Just opened PR #748, please check it. Hope this helps.

jiaozhiye

comment created time in 4 days

PR opened intlify/vue-i18n-next

fix not a function error

See this comment in #746

+6 -6

0 comment

3 changed files

pr created time in 4 days

issue commentintlify/vue-i18n-next

Runtime Error - TypeError: o is not a function

@kazupon This issue might caused by the exports filed in package.json:

"exports": {
    ".": {
      "import": {
        "node": "./index.mjs",
        "browser": "./dist/vue-i18n.runtime.esm-browser.prod.js",
        "default": "./dist/vue-i18n.runtime.esm-bundler.js"
},

These lines specify the vue-i18n.runtime.esm-browser.prod.js file to be used in the browser. However, vue-i18n.runtime.esm-browser.prod.js does not contain the message compiler function. Therefore, an error is reported.

So I think we should use vue-i18n.esm-browser.prod.js in browser by default. WDYT?

jiaozhiye

comment created time in 4 days

create barnchPeterAlfredLee/vue-i18n-next

branch : fix_not_a_func_err

created branch time in 4 days

push eventPeterAlfredLee/vue-i18n-next

kazuya kawaguchi

commit sha 3178087f16caa7864c030c0fe5ca3922ab282006

feat: export types (#673)

view details

kazuya kawaguchi

commit sha 22746a476c6f2ff4b101951b228773db3b8eae51

prerelease release v9.2.0-beta.5 (#674)

view details

kazuya kawaguchi

commit sha 41ab15ff611a2dfbceb5ec1231f400288cda6ccd

fix: typings

view details

dependabot[bot]

commit sha 247fb8f34562e26a63cfcce87e2168d39eafca4a

chore(deps): bump prismjs from 1.24.0 to 1.25.0 (#675) Bumps [prismjs](https://github.com/PrismJS/prism) from 1.24.0 to 1.25.0. - [Release notes](https://github.com/PrismJS/prism/releases) - [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md) - [Commits](https://github.com/PrismJS/prism/compare/v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: prismjs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

renovate[bot]

commit sha 5bb0623b8c17a7bfefae318477b0382edc4cf575

chore(deps): update dependency shipjs to ^0.24.0 (#677) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

dependabot[bot]

commit sha 2602a7936794e9f144e9fe9e9b5370b74d2cc7c4

chore(deps): bump tmpl from 1.0.4 to 1.0.5 (#678) Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/daaku/nodejs-tmpl/releases) - [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5) --- updated-dependencies: - dependency-name: tmpl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

renovate[bot]

commit sha 211b5e46ddeb742256d2f4d85e3e9d4e8a93445c

fix(deps): update dependency monaco-editor to ^0.28.0 (#682) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

renovate[bot]

commit sha a9e2b9e55ec050889a1bc814b28b5e434895ddc5

chore(deps): update dependency vitepress to ^0.19.0 (#679) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

dependabot[bot]

commit sha 4d2468bd8edec8fe1c1f88594e9ab6123926bba9

chore(deps): bump axios from 0.21.1 to 0.21.4 (#683) Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.4. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.4) --- updated-dependencies: - dependency-name: axios dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

dependabot[bot]

commit sha 0bea9c593a7f38a494edaf75eb38f492e1db84ca

chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#684) Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9) --- updated-dependencies: - dependency-name: hosted-git-info dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

renovate[bot]

commit sha 6c379a4a7742b1980096a14c5b8192d2da76152f

chore(deps): update dependency jest-puppeteer to v6 (#687) Co-authored-by: Renovate Bot <bot@renovateapp.com>

view details

kazuya kawaguchi

commit sha 953cc497329e77b18096e8ed7934959777331952

feat: bridge for vue-i18n@v8.26.1 or later (#676) * feat: bridge for vue-i18n@v8.x * implement vue-i18n-brdige * fix: i18n instance creation * chore: bump composition-api * more updates * more refactoring * fix: updates * fix: add e2e tests * add type for vue-i18n-bridge * add docs * updates

view details

kazuya kawaguchi

commit sha 21f93d86d9aa59e42dd18b8631dca84993b2d213

update shipjs config

view details

kazuya kawaguchi

commit sha 8f9b2ece7c9c8bc72b6ac7d34007e3171304c905

prerelease release v9.2.0-beta.6 (#690)

view details

Yosuke Ota

commit sha 1cd56c214c7b8310a6de7061d55470a2d9b64f84

Fix typo in docs/guide/migration/breaking.md (#691)

view details

kazuya kawaguchi

commit sha 5f7f1570469c2a7ac27452a57be12aee5ad44f3a

update vue-i18n-bridge version

view details

kazuya kawaguchi

commit sha e20e75d3ff62b2f0d1f3742ebbceb45eb7718f00

Merge branch 'master' of github.com:intlify/vue-i18n-next

view details

kazuya kawaguchi

commit sha 7f56082b509d121f049861457487caafdcb3ce2e

fix: __INTLIFY_META__ access error in vue-i18n-bridge (#696) closes #692

view details

kazuya kawaguchi

commit sha 5c61e659c222db0251ca4951bcb8a9bb367bf5c3

fix: createI18n second argument type error (#697) * fix: __INTLIFY_META__ access error in vue-i18n-bridge closes #692 * fix: createI18n second argument type error

view details

kazuya kawaguchi

commit sha d82ad4eff1e5bf427691bea83ca5209f316c55ed

fix: custom block reosurce processing errors (#698) * fix: __INTLIFY_META__ access error in vue-i18n-bridge closes #692 * fix: createI18n second argument type error * fix: custom block reosurce processing errors closes #693

view details

push time in 4 days

issue commentintlify/vue-i18n-next

follow up with #669

Hi @kazupon I'm not that familiar with terser, but I still think this problem is caused by tree-shaking. I think rollup/terser believe the call of trackReactivityValues is meaningless, it was removed with tree-shaking. Maybe we should find a way to make the call trackReactivityValues not be tree-shaked.

gwang74

comment created time in 7 days

issue commentintlify/vue-i18n-next

follow up with #669

@kazupon Seems this issue is caused by rollup tree-shaking. This following line will be removed in file vue-i18n.global.prod.js and then cause this issue. https://github.com/intlify/vue-i18n-next/blob/e23297c03d2fa233ee42afb30a041185d0943e94/packages/vue-i18n-core/src/composer.ts#L2035

I have tested, if you replace that line with

console.log(trackReactivityValues())

Then rollup will not remove it in file vue-i18n.global.prod.js and then everything works fine.

Not really sure why, any ideas?

gwang74

comment created time in 8 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha ef91e40abc1c9768ec7543bc4bdc859e5835d1f6

fix: fix UI failure

view details

push time in 10 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha f21b29768eb0ff806a7c7278e499abb51d64b2ae

fix: fix CI failure

view details

push time in 10 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha 1d3f24c7139e05b767e9c31e64b0f633d54e7715

feat: update readme

view details

push time in 10 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha 27154d183d69cd83122c7b6ea79bf6a49d63f632

feat: add readme

view details

PeterAlfredLee

commit sha b745ffaa27a00fe020b36b9d0fba4e961535cb30

feat: update version

view details

push time in 10 days

push eventoriginjs/origin.js

konpeki622

commit sha 0e40bbc56b4df2897312ec3f8508ced9938f5b77

feat: refactor cli test

view details

Lee

commit sha 1a59fed296667796c7995a7f71cbe5db82e7b378

Merge pull request #90 from konpeki622/dev-cli feat: refactor cli test

view details

push time in 10 days

PR merged originjs/origin.js

feat: refactor cli test
+98 -200

0 comment

6 changed files

konpeki622

pr closed time in 10 days

push eventoriginjs/origin.js

PeterAlfredLee

commit sha ae5a5150c334a1e4421a3ad8197060a6b15c268a

fix: fix error in template

view details

push time in 11 days