Commit 6195e0a7 authored by Dennis Tang's avatar Dennis Tang

translate properly

parent 68aa7969
/* global gapi */ /* global gapi */
import Flash from '~/flash'; import Flash from '~/flash';
import { sprintf } from '~/locale'; import { s__, sprintf } from '~/locale';
import * as types from './mutation_types'; import * as types from './mutation_types';
import eventHub from '../eventhub'; import eventHub from '../eventhub';
...@@ -37,7 +37,9 @@ export const getProjects = ({ commit }) => ...@@ -37,7 +37,9 @@ export const getProjects = ({ commit }) =>
if (resp.result.error) { if (resp.result.error) {
Flash( Flash(
sprintf( sprintf(
'ClusterIntegration|An error occured while trying to fetch your projects: %{error}', s__(
'ClusterIntegration|An error occured while trying to fetch your projects: %{error}',
),
{ {
error: resp.result.error.message, error: resp.result.error.message,
}, },
...@@ -66,7 +68,9 @@ export const getZones = ({ commit, state }) => ...@@ -66,7 +68,9 @@ export const getZones = ({ commit, state }) =>
if (resp.result.error) { if (resp.result.error) {
Flash( Flash(
sprintf( sprintf(
'ClusterIntegration|An error occured while trying to fetch project zones: %{error}', s__(
'ClusterIntegration|An error occured while trying to fetch project zones: %{error}',
),
{ error: resp.result.error.message }, { error: resp.result.error.message },
), ),
); );
...@@ -94,7 +98,9 @@ export const getMachineTypes = ({ commit, state }) => ...@@ -94,7 +98,9 @@ export const getMachineTypes = ({ commit, state }) =>
if (resp.result.error) { if (resp.result.error) {
Flash( Flash(
sprintf( sprintf(
'ClusterIntegration|An error occured while trying to fetch zone machine types: %{error}', s__(
'ClusterIntegration|An error occured while trying to fetch zone machine types: %{error}',
),
{ error: resp.result.error.message }, { error: resp.result.error.message },
), ),
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment