Change countdown language

If you want to change language of the countdown, please follow these instructions (example for Brazilian Portuguese – pt_BR):

1. install child theme
2. find appropriate language on https://github.com/kbwood/countdown (in pt_BR case: https://github.com/kbwood/countdown/blob/master/jquery.countdown-pt-BR.js)
3. navigate to raw code: https://raw.githubusercontent.com/kbwood/countdown/master/jquery.countdown-pt-BR.js and copy URL
4. in functions.php of the child theme add these lines of code (note that we used URL of raw localization file):

function tb_child_theme_js() {
    wp_enqueue_script('tb-countdown-localization', "https://raw.githubusercontent.com/kbwood/countdown/master/jquery.countdown-pt-BR.js", array('jquery', 'tb-countdown'), '2.0.2', true);
}

add_action('wp_enqueue_scripts', 'tb_child_theme_js', 99);

5. refresh the site in front-end

0