We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to do something like this,
app.config(['ngBootbox', function(ngBootbox) { ngBootbox.setLocale ('xxx'); }]);
But angular does not run with it, any ideas? Already added ngBootbox as dependencies, and it works great.
Now I just need to avoid setting the locale in every controllers ...
The text was updated successfully, but these errors were encountered:
#29 added config provider
0496f4a
A provider is now added in v0.1.3 of ngBootbox.
You can use it like this:
angular.module('yourApp') .config(function($ngBootboxConfigProvider) { $ngBootboxConfigProvider.setDefaultLocale('sv'); $ngBootboxConfigProvider.addLocale('ex', { OK: 'OK', CANCEL: 'Avbryt', CONFIRM: 'Bekräfta' }); $ngBootboxConfigProvider.removeLocale('ex'); }) .controller('TestCtrl', function($ngBootboxConfig) { var defaultLocale = $ngBootboxConfig.getDefaultLocale(); });
Sorry, something went wrong.
great job! Just applied to my project
No branches or pull requests
Hi,
I'm trying to do something like this,
But angular does not run with it, any ideas? Already added ngBootbox as dependencies, and it works great.
Now I just need to avoid setting the locale in every controllers ...
The text was updated successfully, but these errors were encountered: