I18N support #22
No reviewers
Labels
No labels
bug
duplicate
feature
accepted
feature
proposal
help wanted
invalid
performance
question
user-agent/chromium
user-agent/webkit
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#21 composing toots}
Rubicon/tutu
Reference: Rubicon/tutu#22
Loading…
Reference in a new issue
No description provided.
Delete branch "feat-i18n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is an attempt to create the I18N framework. We can translate the pages later.
We already need full ISO code list for #21, so why not create an initial I18N for the later use?
@ -0,0 +149,4 @@
return () => settings().language || autoMatchLangTag();
}
export function createStringResource<
That's a needed feature: merging multiple resource into one.
Like:
Such feature can help us to reuse some common strings.
@ -31,0 +44,4 @@
const [strings] = createStringResource(
(code) => import(`./i18n/${code}.json`),
);
const t = translator(strings, resolveTemplate);
I hope we can use one call to create this instead of two. This use will be very common.
WIP: I18N supportto I18N support