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:
parent
32a9528e6d
commit
245c538990
12 changed files with 103 additions and 38 deletions
17
gui/app/helpers/localize.js
Normal file
17
gui/app/helpers/localize.js
Normal 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);
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue