1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

Initial i18n experiment

This commit is contained in:
McMatts 2022-03-01 16:22:53 -05:00
parent 32a9528e6d
commit 245c538990
12 changed files with 103 additions and 38 deletions

View file

@ -0,0 +1,17 @@
// Copyright 2022 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// https://www.documize.com
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
export default Helper.extend({
i18n: service(),
compute([key, ...rest]) {
return this.i18n.localize(key, ...rest);
}
});