From c8c8bd9ff2e330e8559673f5e65d01acf21d11db Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Sun, 26 Apr 2020 11:18:51 +0200 Subject: [PATCH] feat: Added example code for how to add translation to dev env. See #374 --- .../template/default/example/src/App.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/create-freesewing-pattern/template/default/example/src/App.js b/packages/create-freesewing-pattern/template/default/example/src/App.js index 50390355562..e10c8f72118 100644 --- a/packages/create-freesewing-pattern/template/default/example/src/App.js +++ b/packages/create-freesewing-pattern/template/default/example/src/App.js @@ -6,16 +6,23 @@ import '@freesewing/css-theme' import Pattern from 'pattern' -const App = props => { +const App = (props) => { let instance = new Pattern() let config = instance.config + // You can use this to add transations + let translations = { + JSON: 'JSON', + someOtherString: 'Some other string that needs translation' + } + return ( ) }