Skip to content

Commit

Permalink
docs: change to correct syntax in lazy load example (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1aw authored Jan 28, 2021
1 parent 057bcac commit 05d57f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/lazy-load-translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Language file example:

```js {}[lang/en-US.js]
export default async (context, locale) => {
await resolve({
return await Promise.resolve({
welcome: 'Welcome'
})
}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/es/lazy-load-translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Ejemplo de archivo de idioma:

```js {}[lang/en-US.js]
export default async (context, locale) => {
await resolve({
return await Promise.resolve({
welcome: 'Welcome'
})
}
Expand Down

0 comments on commit 05d57f9

Please sign in to comment.