{"id":18678127,"url":"https://github.com/zingchart/zingchart-locale","last_synced_at":"2025-04-12T02:39:33.046Z","repository":{"id":57406044,"uuid":"61075522","full_name":"zingchart/zingchart-locale","owner":"zingchart","description":"This repository contains example locale variables you can include in your ZingChart library. This mostly affects native text in features like context menu text.","archived":false,"fork":false,"pushed_at":"2020-08-25T16:38:42.000Z","size":17,"stargazers_count":6,"open_issues_count":3,"forks_count":8,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-12T02:39:24.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://app.zingsoft.com/demos/embed/7SEJXVJ6","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zingchart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-13T23:06:55.000Z","updated_at":"2019-11-20T18:34:59.000Z","dependencies_parsed_at":"2022-08-31T09:20:40.175Z","dependency_job_id":null,"html_url":"https://github.com/zingchart/zingchart-locale","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fzingchart-locale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fzingchart-locale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fzingchart-locale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingchart%2Fzingchart-locale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zingchart","download_url":"https://codeload.github.com/zingchart/zingchart-locale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507338,"owners_count":21115576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T09:36:06.922Z","updated_at":"2025-04-12T02:39:33.024Z","avatar_url":"https://github.com/zingchart.png","language":"JavaScript","readme":"# ZingChart Locale\n\nThis repository contains example locale variables you can include in your ZingChart library.\n\nThe locale render method option lets you change the labels used for various elements of a chart, including the context-menu, and the bug reporter menu. This can really improve usability and make your charts feel really localized.\nWithin your JSON, but outside the graphset object, include `“locale”:”MYLOCALE”` in which MYLOCALE is the name used in your locale JavaScript object, which we will use to set the labels.\n\n## Example:\n```\nzingchart.i18n.en_us =  {\n\t'rtl' : false,\n\t'decimals-separator' : '.',\n\t'thousands-separator' : '',\n\t'menu-reload' : 'Reload',\n\t'menu-print' : 'Print Chart',\n\t'menu-viewaspng' : 'View As PNG',\n\t'menu-viewasjpg' : 'View As JPG',\n\t'menu-downloadpdf' : 'Download PDF',\n\t'menu-downloadsvg' : 'Download SVG',\n\t'menu-exportdata' : 'Export Data',\n\t'menu-downloadcsv' : 'Download CSV',\n\t'menu-downloadxls' : 'Download XLS',\n\t'menu-viewdatatable' : 'View Data Table',\n\t'menu-zoomin' : 'Zoom In',\n\t'menu-zoomout' : 'Zoom Out',\n\t'menu-viewall' : 'View All',\n\t'menu-viewsource' : 'View Source',\n\t'menu-bugreport' : 'Submit Bug',\n\t'menu-switchto2d' : 'Switch To 2D',\n\t'menu-switchto3d' : 'Switch To 3D',\n\t'menu-showguide' : 'Show Guide',\n\t'menu-hideguide' : 'Hide Guide',\n\t'menu-switchtolin' : 'Show Linear Scale',\n\t'menu-switchtolog' : 'Show Log Scale',\n\t'menu-fullscreen' : 'Full Screen',\n\t'menu-exitfullscreen' : 'Exit Full Screen',\n\t'menu-goback' : 'Go Back',\n\t'menu-goforward' : 'Go Forward',\n\t'date-formats' : {\n\t\t'msecond' : '%d %M %Y\u003cbr\u003e%g:%i:%s %A\u003cbr\u003e%q ms',\n\t\t'second' : '%d %M %Y\u003cbr\u003e%g:%i:%s %A',\n\t\t'minute' : '%d %M %Y\u003cbr\u003e%g:%i %A',\n\t\t'hour' : '%d %M %Y\u003cbr\u003e%g %A',\n\t\t'day' : '%d %M %Y',\n\t\t'month' : '%M %Y',\n\t\t'year' : '%Y'\n\t},\n\t'days-short' : ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t'days-long' : ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n\t'months-short' : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n\t'months-long' : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n\t'sync-wait' : 'Wait...',\n\t'export-wait' : 'Exporting...',\n\t'progress-wait-long' : 'Wait. Loading...',\n\t'progress-wait-short' : 'Wait...',\n\t'progress-wait-mini' : '...',\n\t'error-header' : 'An Error Has Occured',\n\t'error-message' : 'Error Message:',\n\t'error-close' : 'Close',\n\t'bugreport-header' : 'Submit Bug Report',\n\t'bugreport-senddata' : 'Send JSON Data',\n\t'bugreport-sendcapture' : 'Send Graph Capture',\n\t'bugreport-yourcomment' : 'Your Comment:',\n\t'bugreport-jsondata' : 'JSON Data:',\n\t'bugreport-youremail' : 'Your Email Address',\n\t'bugreport-infoemail' : 'if you want to receive via email our reply to your problem',\n\t'bugreport-emailmandatory' : 'Email address is mandatory...',\n\t'bugreport-submit' : 'Submit',\n\t'bugreport-cancel' : 'Cancel',\n\t'bugreport-confirm' : 'Your bug report was sent.\\n\\nThank you!',\n\t'about-close' : 'Close',\n\t'viewsource-jsonsource' : 'Parsed JSON',\n\t'viewsource-originalsource' : 'Original JSON',\n\t'viewsource-close' : 'Close',\n\t'viewsource-apply' : 'Apply',\n\t'viewimage-close' : 'Close',\n\t'legend-pagination' : 'Page %page% of %pages%'\n};\n\nzingchart.render({\n\tid: 'myChart',\n\tdata: {\n  \tlocale: 'en_us'\n  \tgraphset:[{\n  \t\ttype: 'line',\n  \t\tseries: [{\n  \t\t\tvalues: [1,2,3,4,5];\n  \t\t}]\n  \t}]\n  }\n});\n```\n## Installation\nTo ease including locales into your environment, we have provided a few different ways to download this package.\n  1. Download the package directly from [github](https://github.com/zingchart/zingchart-locale/archive/master.zip)\n  2. Install with bower using the command `bower install zingchart-locale`.\n  3. Install with npm using the command `npm install zingchart-locale`.\n\n## Usage\n\nTo ease including locales into your environment, we have provided a few different ways to use into your application.\n\n### Script inclusion\n\n  1. After zingchart has been loaded, include the desired locale into your html file after zingchart has been loaded.\n\n  ```html\n   ...\n   \u003cscript src=\"./path/to/zingchart.min.js\"\u003e\u003c/script\u003e\n   \u003cscript src=\"./path/to/locales/zingchart-i18n-en-us.min.js\"\u003e\u003c/script\u003e\n   ...\n  ```\n  \n  2. Reference the locale key from the file loaded in your json. In this case, 'en_us' will be our key\n \n  ```js\n    zingchart.render({\n    \tid: 'myChart',\n    \tdata: {\n      \tlocale: 'en_us'\n      \tgraphset:[{\n      \t\ttype: 'line',\n      \t\tseries: [{\n      \t\t\tvalues: [1,2,3,4,5];\n      \t\t}]\n      \t}]\n      }\n    });\n  ```\n\n### Including it as a module (npm)\nThis method is useful for those who want to package up their locales with a build tool such as browserify.\n\n  1. After zingchart has been loaded, include the desired module and store it into a variable inside of `zingchart.i18n.`.\n\n  ```js\n    var zingchart = require('zingchart');\n    zingchart.i18n.en_us = require('zingchart-locale').en_us;\n  ```\n\n  2. Reference the locale key from the file loaded in your json. In this case, 'en_us' will be our key.\n\n  ```html\n    zingchart.render({\n    \tid: 'myChart',\n    \tdata: {\n      \tlocale: 'en_us'\n      \tgraphset:[{\n      \t\ttype: 'line',\n      \t\tseries: [{\n      \t\t\tvalues: [1,2,3,4,5];\n      \t\t}]\n      \t}]\n      }\n    });\n  ```\n\n\n## Contributing\nPlease follow the example file `zingchart-i18n-en-us.js` as a template which has the required structure necessary for the bower and npm package managers. Your filename should be prefixed with `zingchart-i18n-` and an appropriate language abbreviation, while the variable with underscores as necessary e.g. `zingchart.i18n.en_us`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingchart%2Fzingchart-locale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzingchart%2Fzingchart-locale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingchart%2Fzingchart-locale/lists"}