Code Monkey home page Code Monkey logo

Comments (2)

gracehcoote avatar gracehcoote commented on June 21, 2024

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?

from jquery-facebook-wall.

thomasclausen avatar thomasclausen commented on June 21, 2024

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)

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']
    }
});

from jquery-facebook-wall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.