react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

LocaleConfig SyntaxError.

Open dev-oskar opened this issue 8 years ago • 1 comments

Description

I've been trying to translate my month names, days, etc in Polish. I've followed instructions in this repo.

Expected Behavior

I wanted to have polish strings in Calendar in my application.

Observed Behavior

What actually happened when you performed the above actions? The application won't run now. If I comment translate section and use default locales (english) then I can see the Calendar. To check if I haven't made any typo - I've copied and paste french translations (from the tutorial here) but it gives me the same error as well. I haven't forgot about importing dependencies. The problem is within this lane:

error: bundling failed: SyntaxError in (...) : Unexpected token (14:14)

LocaleConfig.locales['pl'] = { (...)

And it points on the dot between LocaleConfig and locales.

Here's screenshot from the phone (somehow I wasn't able to copy error message): picture.

Environment

Please run these commands in the project folder and fill in their results:

Also specify:

I'm using my own phone - Lenovo K6 Note with 7.0 Android. (Computer is too weak to run emulator freely)

Reproducible Demo

There's my code: click

dev-oskar avatar Feb 20 '18 10:02 dev-oskar

This is a bug in your code, not this project.

You need to place the code outside of the class .... { }-Block.

EyMaddis avatar Mar 14 '18 12:03 EyMaddis