I18n is now imported
Dieser Commit ist enthalten in:
Ursprung
34a556e0bf
Commit
f28bde5206
6 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
2
assets/javascripts/wizard-preload.js.es6
Normale Datei
2
assets/javascripts/wizard-preload.js.es6
Normale Datei
|
@ -0,0 +1,2 @@
|
||||||
|
//= require discourse-loader
|
||||||
|
//= require locales/i18n
|
|
@ -1,6 +1,7 @@
|
||||||
import { default as computed, observes } from 'discourse-common/utils/decorators';
|
import { default as computed, observes } from 'discourse-common/utils/decorators';
|
||||||
import { renderAvatar } from 'discourse/helpers/user-avatar';
|
import { renderAvatar } from 'discourse/helpers/user-avatar';
|
||||||
import userSearch from '../lib/user-search';
|
import userSearch from '../lib/user-search';
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
const template = function(params) {
|
const template = function(params) {
|
||||||
const options = params.options;
|
const options = params.options;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import getUrl from "discourse-common/lib/get-url";
|
import getUrl from "discourse-common/lib/get-url";
|
||||||
import { getToken } from "wizard/lib/ajax";
|
import { getToken } from "wizard/lib/ajax";
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
classNames: ["wizard-field-upload"],
|
classNames: ["wizard-field-upload"],
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import computed from "discourse-common/utils/decorators";
|
import computed from "discourse-common/utils/decorators";
|
||||||
import { siteDir, isRTL, isLTR } from "discourse/lib/text-direction";
|
import { siteDir, isRTL, isLTR } from "discourse/lib/text-direction";
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default Ember.TextField.extend({
|
export default Ember.TextField.extend({
|
||||||
attributeBindings: ['autocorrect', 'autocapitalize', 'autofocus', 'maxLength', 'dir'],
|
attributeBindings: ['autocorrect', 'autocapitalize', 'autofocus', 'maxLength', 'dir'],
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default Ember.Route.extend({
|
export default Ember.Route.extend({
|
||||||
model(params) {
|
model(params) {
|
||||||
const appModel = this.modelFor('custom');
|
const appModel = this.modelFor('custom');
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
<%- if theme_ids.present? %>
|
<%- if theme_ids.present? %>
|
||||||
<%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %>
|
<%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
|
<%= preload_script "wizard-preload" %>
|
||||||
<%= preload_script "ember_jquery" %>
|
<%= preload_script "ember_jquery" %>
|
||||||
<%= preload_script "wizard-vendor" %>
|
<%= preload_script "wizard-vendor" %>
|
||||||
<%= preload_script "wizard-application" %>
|
<%= preload_script "wizard-application" %>
|
||||||
|
|
Laden …
In neuem Issue referenzieren