We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add a new setting to make it possible to also change locale
The text was updated successfully, but these errors were encountered:
Hi, I can't seem to get the locale to change, I'm putting in en-GB but it's still in Danish. Any ideas?
Sorry, something went wrong.
Hi, @gracehcoote
There are two options you need to change i order to get the output in english. The first option is the locale (https://github.com/thomasclausen/jquery-facebook-wall/blob/master/facebook_wall.plugin.js#L14) and the other is the text_labels option (https://github.com/thomasclausen/jquery-facebook-wall/blob/master/facebook_wall.plugin.js#L18)
locale
text_labels
Here's an example:
$('#facebook-wall').facebook_wall({ id: '140239969347795', access_token: '108285195955733|nBxyzkey6X69Aors5psTwDTOPPY', limit: 15, locale: 'en_GB', text_labels: { shares: { singular: 'Shared % time', plural: 'Shared % times' }, likes: { singular: '% like', plural: '% likes' }, comments: { singular: '% comment', plural: '% comments' }, like: 'Like', comment: 'Write comment', share: 'Share', days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], months: ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] } });
thomasclausen
No branches or pull requests
Add a new setting to make it possible to also change locale
The text was updated successfully, but these errors were encountered: