• Stars
    star
    166
  • Rank 221,693 (Top 5 %)
  • Language
    R
  • License
    Other
  • Created almost 7 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Shiny applications internationalization made easy

shiny.i18n shiny.i18n logo

Shiny applications internationalization made easy!

CRAN status codecov cranlogs total R-CMD-check

Using it is very simple: just prepare your translation files in one of the supported formats, read them into your app using user-friendly shiny.i18n interface and surround your expressions to translate by a translator tag. Thanks to that your app will remain neat and readable.

Actually, you can use shiny.i18n as a standalone R package - shiny app is just a perfect use-case example.

Change languages and formats easy with shiny.i18n.

How to install?

Stable version:

install.packages("shiny.i18n")

Development version:

remotes::install_github("Appsilon/shiny.i18n")

Examples

See shiny.i18n in action live

You can find some basic examples in examples folder:

  1. Using i18n object with CSV translation files or JSON translation files.

  2. Live language change on the browser side or with the server function renderUI.

  3. RMarkdown translations.

  4. Example of translation data format.

  5. shiny.i18n works seamlessly with Quarto.

  6. shiny.i18n also works when used in interactive Quarto + Shiny instances. Alternatively, you can also experience a deployed version.

Translation file format

Currently shiny.i18n supports two translation formats:

  • csv - where each translation is in separate file translation_<LANGUAGE-CODE>.csv containing two columns: key translation, language to which it needs to be translated. Example of translation_pl.csv for Polish language you may find here: inst/examples/data/translation_pl.csv. You load the data by passing the path to folder containing all the csv files:
Translator$new(translation_csvs_path = "...")
  • json - single json file translation.json with mandatory fields: "languages" with list of all language codes and "translation" with list of dictionaries assigning each translation to a language code. Example of such a json file for Polish language you may find here: inst/examples/data/translation.json. You load the data by passing the path to json file.
Translator$new(translation_json_path = "...")

shiny.i18n and rhino

shiny.i18n can be used to add live language change feature to Shiny applications built using Rhino framework. For more details, check this tutorial.

How to contribute?

If you want to contribute to this project please submit a regular PR, once you're done with a new feature or bug fix.

Reporting a bug is also helpful - please use GitHub issues and describe your problem as detailed as possible.

Appsilon

Appsilon is a Posit (formerly RStudio) Full Service Certified Partner.
Learn more at appsilon.com.

Get in touch [email protected]

Explore the Rhinoverse - a family of R packages built around Rhino!

We are hiring!

More Repositories

1

shiny.semantic

Shiny support for powerful Fomantic UI library.
R
489
star
2

shiny.fluent

Microsoft's Fluent UI for Shiny apps
R
267
star
3

rhino

Build high quality, enterprise-grade Shiny apps at speed
R
265
star
4

shiny.router

A minimalistic router for your Shiny apps.
R
253
star
5

semantic.dashboard

Quick, beautiful and customizable dashboard template for Shiny based on shiny.semantic and Fomantic UI.
R
248
star
6

data.validator

validate your data and create nice reports straight from R
HTML
145
star
7

styleguide

[DEPRECATED] Style guides at Appsilon.
100
star
8

shiny.react

Use React in Shiny applications.
JavaScript
93
star
9

shiny.collections

This project is deprecated and no longer supported. (Google Docs-like live collaboration in Shiny)
R
76
star
10

r-lambda-workflow

Runtime for running R on AWS Lambda.
Python
66
star
11

awesome-interview-questions

64
star
12

shiny.info

Display simple diagnostic info of your Shiny app
R
60
star
13

shiny.telemetry

Easy logging of users activity and session events of your Shiny App
R
60
star
14

shiny.worker

Intra-session reactivity in Shiny
R
57
star
15

shiny.blueprint

Blueprint - React-based UI toolkit for Shiny Apps
R
41
star
16

reactable.extras

Extra features for reactable package
R
34
star
17

shiny.benchmark

Tools to measure performance improvements in shiny apps
R
30
star
18

mbaza

Save 99% of Your Time Classifying Camera-Trap Footage. Completely Free.
TypeScript
28
star
19

rhino-showcase

An example app built with Rhino to showcase its features
R
27
star
20

shiny.emptystate

Empty state components for Shiny
R
25
star
21

webr.bundle

Bundle Shiny Applications for serving with WebR.
Rust
24
star
22

rhino-masterclass

R
22
star
23

fastai-in-r

How to use Fast.ai from R - eRum 2020 presentation code
HTML
20
star
24

shiny.tictoc

Measuring shiny performance in the browser.
JavaScript
17
star
25

shiny.semantic-hackathon-2020

Appsilon shiny.semantic hackathon 2020
R
16
star
26

shiny.gosling

R Shiny wrapper for Gosling.js - Grammar-based Toolkit for Scalable and Interactive Genomics Data Visualization
R
16
star
27

experimental-plumber-example

R
13
star
28

shiny.molstar

R Shiny wrapper for Mol* (/'molstar/) - A visualization toolkit of large-scale molecular data
R
12
star
29

datascience-python

Introduction to Data Science in Python by Appsilon
HTML
11
star
30

community-gists

In this repository, you will find all the code from our blog posts, social posts, videos and so on.
R
11
star
31

r2d3

R domain specific language for D3.js
CoffeeScript
10
star
32

data.validator-shiny.fluent-report

Proof of concept R/Shiny app built using shiny.fluent components. App built for RStudio Shiny Contest 2021
R
9
star
33

rhinoverse.dev

The landing page for Rhinoverse: a collection of open-source R packages for enterprise Shiny apps.
JavaScript
9
star
34

py_shiny_semantic

Semantic UI made available in Shiny-for-Python
Python
8
star
35

shiny.users.demo

8
star
36

eRum2020

7
star
37

quake_explorer_app

Application for shiny.fluent + imola blog post. The app let the user explore the occurrence of earthquakes.
R
7
star
38

experimental-fda-submission-4-podman

Dockerfile
7
star
39

rhino-fda-pilot

R
7
star
40

natural_language_queries

Example Shiny implementation of natural language queries from shinyconf-2023
R
6
star
41

ansible-rstudio-workbench

Set up (the latest version of) RStudio Workbench in Debian-like systems
Jinja
6
star
42

rhino-workshop

Rhino Workshop App (2022-05-13)
R
5
star
43

serengeti_try_it_yourself

Try our model on your own images - check if it can spot any of the 53 species from Serengeti in any of your favourite photos
Jupyter Notebook
5
star
44

respiratory_disease_pyshiny

PythonShiny clone of respiratory_disease_app_sprint
Python
4
star
45

gabon_wildlife_training

Jupyter Notebook
4
star
46

shiny.layouts

Powerful layouts for your Shiny app: CSS grid, sidebar layout, vertical layout and more!
R
4
star
47

satrdays-2019-workshop

Materials for SatRday shiny workshop
R
4
star
48

covid-hackathon

CoronaRank: modeling to assess the likelihood of coronavirus exposure
R
4
star
49

ci.example

Sample R package project with CI configured using CircleCI.
R
4
star
50

highlighter

htmlwidgets wrapper for highlight.js
CSS
4
star
51

user2017

Presentations from useR 2017
4
star
52

ansible-role-template

Jinja
3
star
53

useR-2022-shiny-tutorial

HTML
3
star
54

readme_rmd_template

README.Rmd template for R packages.
CSS
3
star
55

testing-workshop

Repository created for the hands-on Appsilon workshops about adding tests to the application. It is based on {rhino} and Destination Overview template.
R
3
star
56

LogAnalyzer

A LogAnalyzer app for checking logs in Posit Connect
R
3
star
57

verified.installation

R package that helps installing dependencies in Docker images
R
3
star
58

ansible-rstudio-package-manager

Jinja
3
star
59

readmebuilder

R
2
star
60

crossfilter-demo

Dynamic filtering in Shiny dashboard - basic example.
R
2
star
61

weighted-picker-input

JavaScript
2
star
62

ansible-r

2
star
63

latin-r-2023

R
2
star
64

NLPShiny

Jupyter Notebook
2
star
65

dane.gov.pl

Repozytorium ze skryptami walidacyjnymi dla danych z portalu https://dane.gov.pl
R
2
star
66

energy-management-shiny-fluent-app

R
2
star
67

auth0api

R package for auth0
R
2
star
68

.github

2
star
69

hack4env

Jupyter Notebook
1
star
70

presentations

HTML
1
star
71

saving-ram-with-arrow

HTML
1
star
72

shiny-conf-globe

Data visualization of ShinyConf 2023 participants
HTML
1
star
73

shiny-papers-pilot

First implementation of a shiny paper
R
1
star
74

website-cdn

HTML
1
star
75

persistent-data-storage-sqlite

PoC showcasing persistent data and app-state storage
R
1
star
76

ansible-rstudio-connect

Ansible role for setting up RStudio/Posit Connect
Jinja
1
star
77

dynamic-shiny-modules

R
1
star
78

copepods-lipid-content

Jupyter Notebook
1
star
79

whyR2017

Presentations from Why R conference
1
star
80

Hexsticker

R
1
star
81

shinynlq

R
1
star
82

terraform-module-template

HCL
1
star
83

modulesExtendeR

Wrapper around klmr/modules to support relative paths.
R
1
star
84

vaccines-dashboard

Demo for the shiny.blueprint package
R
1
star
85

box.linters

lintr-compatible linters for box modules in R
R
1
star
86

ansible-mount-efs

Jinja
1
star
87

erum2018

Materials from Taking inspirations from proven frontend frameworks to add to Shiny with 6 new packages
1
star
88

terraform-aws-rstudio-workbench-example

HCL
1
star
89

py_shiny_semantic_examples

Demo applications using Shiny for Python with Shiny Semantic
Python
1
star
90

cypress-masterclass

1
star
91

example-cypress-shiny-ci

JavaScript
1
star
92

example-cypress-ci

JavaScript
1
star
93

TicTacJoe

This repo holds an app with TicTacJoe - a reinforcement learning example, in the game of Tic Tac Toe
HTML
1
star
94

semantic.assets

Assets for shiny.semantic
CSS
1
star