smapiot / piral

🚀 Framework for next generation web apps using micro frontends. ⭐️ Star to support our work!
https://piral.io
MIT License
1.68k stars 125 forks source link

Enable nested translations #648

Closed kevinkasper closed 10 months ago

kevinkasper commented 10 months ago

New Pull Request

For more information, see the CONTRIBUTING guide.

Prerequisites

Please make sure you can check the following boxes:

Type(s) of Changes

Contribution Type

What types of changes does your code introduce? Put an x in all the boxes that apply:

Description

This pull request enables the use of nested translations:

Before

{
    "header.title": "Hello world"
}

After

{
    "header": {
        "title": "Hello world"
    }
}

Remarks

-

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.

github-actions[bot] commented 10 months ago

File size impact

Merging feat/nested_translations into develop impact files as follow:

empty-piral (no impact)
Files new size
Unmodified (2) 28.8 kB (0 B / +0%) :ghost:
Total (2) 28.8 kB (0 B / +0%) :ghost:
minimal-piral (no impact)
Files new size
Unmodified (2) 276 kB (0 B / +0%) :ghost:
Total (2) 276 kB (0 B / +0%) :ghost:
sample-cross-fx (no impact)
Files new size
Unmodified (3) 2.23 MB (0 B / +0%) :ghost:
Total (3) 2.23 MB (0 B / +0%) :ghost:
sample-piral (+0.24%)
Files new size
src/samples/sample-piral/dist/release/index.0747fd.js 524 kB :baby:
src/samples/sample-piral/dist/release/main.e49a32.css 170 kB :baby:
src/samples/sample-piral/dist/release/main.59084b.css deleted (-170 kB)
src/samples/sample-piral/dist/release/index.3dbdc4.js deleted (-522 kB)
src/samples/sample-piral/dist/release/index.html 490 B (0 B / +0%) :ghost:
Total (5) 695 kB (+1.68 kB / +0.24%) :arrow_upper_right:
sample-piral-core (no impact)
Files new size
Unmodified (3) 354 kB (0 B / +0%) :ghost:
Total (3) 354 kB (0 B / +0%) :ghost:

Generated by @jsenv/file-size-impact during check-bundle-size#7029720082 on 5d82381