Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless: reading localePath from the local file system fails #844

Closed
orestis-z opened this issue Oct 6, 2020 · 4 comments
Closed

Serverless: reading localePath from the local file system fails #844

orestis-z opened this issue Oct 6, 2020 · 4 comments

Comments

@orestis-z
Copy link

orestis-z commented Oct 6, 2020

Describe the bug

Reading localePath from the local file system fails. Related to this comment: #274 (comment)

Occurs in next-i18next version

v5.1.0

Steps to reproduce

new NextI18Next({
  defaultLanguage: "de",
  localeSubpaths,
  localePath: path.resolve("./public/locales"),
});

Expected behaviour

Being able to load locales files with serverless

Screenshots

image

@isaachinman
Copy link
Contributor

This will ultimately be platform specific and is up to the end user.

@orestis-z
Copy link
Author

orestis-z commented Oct 6, 2020

@isaachinman could you please specify what you mean? How is this up to the end-user?
I think you're confusing things. It's a platform-independent, serverless-compatibility related issue.

@isaachinman
Copy link
Contributor

The presence or absence of files in your serverless environment is not something this package can help with. Good luck!

@orestis-z
Copy link
Author

@isaachinman isn't this library supposed to be compatible with serverless #274 (comment)?
I've followed the default instruction in including the localePath, but maybe you could hint me in the right direction on how to load the locales files with serverless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants