Comments (6)
add &locale=... parameter to web query
from betty.
or ask explicitly:
how is the london weather in celsius
from betty.
add &locale=... parameter to web query
Where exactly do I add this param? /etc/betty/bettyconfig ?
Also, having something like betty use locale ___
would be useful, in any case.
from betty.
sounds good. and then use it like this:
path = "/api?"
path += "input=#{ encoded }"
path += "&locale=" + BettyConfig.get("locale") || ENV["LANG"]
(in main.rb .. def web_query )
from betty.
or via
require 'locale'
Locale.current
from betty.
Yes please.
from betty.
Related Issues (20)
- Betty does not work with internet HOT 4
- Maintainer? HOT 1
- Go home doesn't actually work HOT 3
- betty says "Couldn't get a file descriptor referring to the console" while using web queries
- Add a setting to change the weather from Fahrenheit to Celsius and vice versa HOT 1
- Problem with command "go crazy"
- Problem with command "whats my real name" HOT 1
- command not found stuff on arch HOT 1
- command not found stuff on arch HOT 6
- Additional git support HOT 2
- BETTY warning Insecure world writable after speak to me command
- install.rb copies the wrong files if not in correct directory
- Can you please add a command for multiple directory creation
- Make installation possible via RubyGems? HOT 1
- Error: no say in HOT 1
- $ betty give me permission to this directory - incorrect semantics.
- how can i run it? HOT 4
- zsh install problems? HOT 3
- If you could add Italian HOT 1
- Can anyone update this code? HOT 6
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 betty.