Skip to content

[CAL-698] RFC: Consider start splitting translation files per module/route/etc. #6315

@zomars

Description

@zomars

Right know we concentrate all of our translations string in a single common.json file which was fine for the time being. But as the app keeps growing we're starting to get some size warnings from next:

@calcom/web:dev: Warning: data for page "/auth/login" is 174 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
@calcom/web:dev: See more info here: https://nextjs.org/docs/messages/large-page-data

The main culprit being that we download the whole common.json file on each page.

image.png

We could create namespaces for specific routes and call then on the get props methods as described in the docs.

From SyncLinear.com | CAL-698

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions