authgear / authgear/authgear-server

Optimize template rendering

Open
#1,006 0 comments 0 reactions 0 assignees View on GitHub
cooldown/enhancement
Dominant language
Go
Stars
2k
Forks
125
Avg merge
2d 17h
Merged PRs (30d)
32

Description

Right now we use the `template` directive to render translation. This approach requires us to parse all translation in advance, even if only few translations are actually used.

We can borrow the idea from helm to introduce `include`

Contributor guide

Open the contributing guide

Research direction

Start by locating the Go code that handles the `template` directive and translation rendering, then study Helm's `include` approach for comparison. Done means translations are not all parsed in advance and only translations actually used by rendering are processed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, helm
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.