Comments (2)
Thank you - I have got it working now with the following approach:
- .net core project: add a Resources folder with the .resx files
- .net core project: add a build step to use Powershell to convert the .resx to i18n JSON files & save to the Client app common folder
- client project: use 'vue-i18n' per its instructions and inject into each Vue app
from aspnetcore-vue-typescript-template.
👋,
I personally would have 1 file per module because it makes it easier to maintain and leads to fewer conflicts. But, what you might encounter is that you'll find yourself duplicating strings as Save
, Cancel
etc ( random words on top of my head ) so it might be a good idea to also have a common dictionary.
Regarding the vue-i18n
, you'll have to setup/import translations in every module since every module has a life of its own.
So, import common translations + module translations and hook them up on your Vue instance in every module. The rest should be the same as in the docs of the package.
from aspnetcore-vue-typescript-template.
Related Issues (14)
- Node-sass package missing from fresh install HOT 1
- Adding Vuetify HOT 5
- Vue loader does not include simple css styles HOT 1
- Can you update your project? HOT 2
- Question Please, Is it possible to use react in same project? HOT 1
- Version without TS/SASS? HOT 3
- Core 3.1 Please? HOT 1
- Could you by any chance upgrade to .NET 5.0 ? HOT 1
- Not Found: [email protected] HOT 2
- Amazing Repo HOT 3
- Hot module reloading does not work HOT 2
- I got HMR working HOT 5
- Issues publishing to Azure VM HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcore-vue-typescript-template.