Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,304 for locale (0.12 sec)

  1. Library/Homebrew/locale.rb

          public_send(var) == other.public_send(var)
        end
      end
      alias == eql?
    
      def detect(locale_groups)
        locale_groups.find { |locales| locales.any? { |locale| eql?(locale) } } ||
          locale_groups.find { |locales| locales.any? { |locale| include?(locale) } }
      end
    
      def to_s
        [@language, @region, @script].compact.join("-")
      end
    Ruby
    - Registered: 2020-09-20 23:49
    - Last Modified: 2020-08-11 22:45
    - 2.7K bytes
    - Viewed (0)
  2. components/config-provider/demo/locale.md

        this.setState({ locale: localeValue });
        if (!localeValue) {
          moment.locale('en');
        } else {
          moment.locale('zh-cn');
        }
      };
    
      render() {
        const { locale } = this.state;
        return (
          <div>
            <div className="change-locale">
              <span style={{ marginRight: 16 }}>Change locale of components: </span>
              <Radio.Group value={locale} onChange={this.changeLocale}>
    Plain Text
    - Registered: 2020-09-22 14:58
    - Last Modified: 2019-12-25 14:13
    - 4.3K bytes
    - Viewed (0)
  3. internal/mocks/locale.go

    package mocks
    
    import (
    	"gopkg.in/macaron.v1"
    )
    
    var _ macaron.Locale = (*Locale)(nil)
    
    type Locale struct {
    	MockLang string
    	MockTr   func(string, ...interface{}) string
    }
    
    func (l *Locale) Language() string {
    	return l.MockLang
    }
    
    func (l *Locale) Tr(format string, args ...interface{}) string {
    	return l.MockTr(format, args...)
    Go
    - Registered: 2020-09-17 01:40
    - Last Modified: 2020-04-06 10:35
    - 498 bytes
    - Viewed (0)
  4. docs/sources/packages_api/data/locale.md

    ---------------------------------------------
    L5:title = "locale"
    L6:keywords = ["grafana","documentation","sdk","@grafana/data"]
    L7:type = "docs"
    L8:+++
    L9:
    L10:## locale() function
    L11:
    L12:### locale() function
    L13:
    L14:<b>Signature</b>
    L15:
    L16:```typescript
    L17:export declare function locale(value: number, decimals: DecimalCount): FormattedValue;
    L18:```
    L19:<b>Import</b>
    L20:
    L21:```typescript
    L22:import { locale } from '@grafana/data';
    L23:```
    L24:<b>Parameters</b>
    L25:
    ...
    Plain Text
    - Registered: 2020-09-20 14:46
    - Last Modified: 2020-04-28 07:53
    - 791 bytes
    - Viewed (0)
  5. src/sentry/conf/locale.py

    import os
    import sentry
    
    from sentry.utils import json
    
    
    # change locale file dir name to locale code
    def dirname_to_local(dir_name):
        if "_" in dir_name:
            pre, post = dir_name.split("_", 1)
            dir_name = u"{}-{}".format(pre, post.lower())
        return dir_name
    
    
    with open(os.path.join(os.path.dirname(sentry.__file__), "locale", "catalogs.json"), "r") as f:
        CATALOGS = json.load(f)["supported_locales"]
    Python
    - Registered: 2020-08-24 23:34
    - Last Modified: 2020-08-10 19:24
    - 529 bytes
    - Viewed (0)
  6. src/main/ui/Locale.js

    const localeManager = new LocaleManager({
      resources
    })
    
    export function getLocaleManager () {
      return localeManager
    }
    
    export function setupLocaleManager (locale) {
      localeManager.changeLanguageByLocale(locale)
    
      return localeManager
    }
    
    export function getI18n () {
      return localeManager.getI18n()
    }
    
    export function getI18nTranslator () {
      return localeManager.getI18n().t
    JavaScript
    - Registered: 2020-09-24 03:35
    - Last Modified: 2019-03-16 08:11
    - 486 bytes
    - Viewed (0)
  7. src/ng/locale.js

    'use strict';
    
    /**
     * @ngdoc service
     * @name $locale
     *
     * @description
     * $locale service provides localization rules for various AngularJS components. As of right now the
     * only public api is:
     *
     * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)
    JavaScript
    - Registered: 2020-09-18 06:53
    - Last Modified: 2017-01-25 08:18
    - 295 bytes
    - Viewed (0)
  8. test/locale.test.js

      const D2 = D.locale(NOT_SUPPORTED_LOCALE_STRING)
      expect(D2.locale()).toBe('en')
      expect(D2.format()).toBe(D.format())
      const D3 = D2.locale('es')
      expect(D3.locale()).toBe('es')
      const D4 = D3.locale(NOT_SUPPORTED_LOCALE_STRING)
      expect(D4.locale()).toBe('es')
    })
    
    it('Not supported locale string fallback to previous one (global)', () => {
      expect(dayjs().locale()).toBe('en')
    JavaScript
    - Registered: 2020-09-23 07:57
    - Last Modified: 2020-03-06 03:37
    - 3.9K bytes
    - Viewed (0)
  9. components/modal/locale.tsx

    import defaultLocale from '../locale/default';
    
    export interface ModalLocale {
      okText: string;
      cancelText: string;
      justOkText: string;
    }
    
    let runtimeLocale: ModalLocale = {
      ...(defaultLocale.Modal as ModalLocale),
    };
    
    export function changeConfirmLocale(newLocale?: ModalLocale) {
      if (newLocale) {
        runtimeLocale = {
          ...runtimeLocale,
          ...newLocale,
        };
      } else {
        runtimeLocale = {
    Plain Text
    - Registered: 2020-09-22 14:58
    - Last Modified: 2020-03-11 06:56
    - 538 bytes
    - Viewed (0)
  10. src/mixins/locale.js

    import { t } from 'element-ui/src/locale';
    
    export default {
      methods: {
        t(...args) {
          return t.apply(this, args);
        }
      }
    JavaScript
    - Registered: 2020-09-20 12:44
    - Last Modified: 2016-11-07 15:33
    - 138 bytes
    - Viewed (0)
Back to top