Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
415138e7
Unverified
Commit
415138e7
authored
Sep 16, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register the translations
parent
96294d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
app.js
resources/assets/js/app.js
+1
-11
No files found.
resources/assets/js/app.js
View file @
415138e7
...
@@ -27,9 +27,8 @@ const router = new VueRouter({
...
@@ -27,9 +27,8 @@ const router = new VueRouter({
});
});
let
messages
=
{
let
messages
=
{
[
currentLocale
]:
window
.
translations
,
[
currentLocale
]:
window
.
AsgardCMS
.
translations
,
};
};
console
.
log
(
messages
);
const
i18n
=
new
VueI18n
({
const
i18n
=
new
VueI18n
({
locale
:
currentLocale
,
locale
:
currentLocale
,
...
@@ -41,12 +40,3 @@ const app = new Vue({
...
@@ -41,12 +40,3 @@ const app = new Vue({
router
,
router
,
i18n
,
i18n
,
});
});
// window.axios.get(route('api.translation.translations.all'))
// .then(response => {
// messages = {
// [currentLocale]: response.data,
// };
// console.log(messages);
// app.$i18n.setLocaleMessage('en', messages)
// });
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment